Crayola crayon color

Crayola Olive Green #BAB86C

Crayola Olive Green is shown here as #BAB86C, the commonly published value for the crayon. It is a light muted yellow in the yellow family. In OKLCH it sits at lightness 0.767, chroma 0.098 and hue 107.2°. The nearest CSS named color is darkkhaki (#BDB76B), ΔE2000 1.2 away.

Relative luminance
0.4580
OKLCH L · C · h
0.767 · 0.098 · 107.2
Best text
Black 10.16:1
Hue family
Yellow

#BAB86C color codes

HEX
#BAB86C
RGB
rgb(186, 184, 108)
HSL
hsl(58, 36%, 58%)
OKLCH
oklch(0.767 0.098 107.2)
OKLab
oklab(0.767 -0.029 0.094)
CIELAB (D65)
L* 73.42, a* -10.42, b* 38.77
XYZ (D65)
X 40.10, Y 45.80, Z 20.91
CMYK (naive)
cmyk(0%, 1%, 42%, 27%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Crayola is a trademark of Crayola LLC, which this site is not affiliated with. The value is the commonly published sRGB rendering of the crayon, not a Crayola specification.

Legibility

Contrast: is #BAB86C accessible?

Black text on it reaches 10.16:1, passing AAA. White text fails at 2.06:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    10.16:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +63
  • White text on it

    2.06:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −44
  • As text on black

    10.16:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −61
  • As text on white

    2.06:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +40

Nearest versions that pass 4.5:1

  • For text on white

    #7C792C 4.53:1

    Darkening its OKLCH lightness from 0.77 to 0.56 reaches 4.53:1 on white, keeping the hue.

  • For text on black

    #BAB86C 10.16:1

    It already reaches 10.16:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #BAB86C live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #BAB86C

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #BAB86C sits at step 300.

  1. 50#FAFABD
    White
    1.07
    Black
    19.47
  2. 100#F1F0B1
    White
    1.17
    Black
    17.83
  3. 200#DDDC99
    White
    1.42
    Black
    14.77
  4. 300This color#BAB86C
    White
    2.06
    Black
    10.16
  5. 400#A8A65C
    White
    2.53
    Black
    8.27
  6. 500#8D8A3F
    White
    3.59
    Black
    5.83
  7. 600#757225
    White
    5.01
    Black
    4.19
  8. 700#5E5B08
    White
    7.05
    Black
    2.97
  9. 800#454200
    White
    10.33
    Black
    2.03
  10. 900#2C2B00
    White
    14.45
    Black
    1.45
  11. 950#181700
    White
    18.08
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #BAB86C can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.165; #BAB86C uses 60% of it. Display P3, which many recent phones and laptops show, reaches 0.191 there: 16% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.098
sRGB edge
0.165
Display P3 edge
0.191
Rec. 2020 edge
0.196
Dominant wavelength
571 nm
Excitation purity
46%
Chromaticity
x 0.3754, y 0.4288
  • This color#BAB86C
  • Most vivid in sRGB#C0B900
  • Most vivid in Display P3oklch(0.767 0.191 107.2)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #bab86c;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.756 0.7286 0); }
}

Mixing

Mixing #BAB86C

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#DDDCB6
  • OKLab50%#DCDCB6
  • OKLCH50%#DCDCB6

Black #000000

  • sRGB50%#5D5C36
  • OKLab50%#464525
  • OKLCH50%#464525

Its complement #AFAAEF

  • sRGB50%#B5B1AE
  • OKLab50%#B3B3B3
  • OKLCH50%#5CC7C9
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #bab86c, white);
color: color-mix(in oklch, #bab86c 50%, white);

In use

#BAB86C in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:110.16:1 Passes
  • Link and body-size textText, 4.5:12.06:1 Fails
  • Large headingLarge text, 3:12.06:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.06:1 Fails

For text on this page, the nearest shade that passes is #7C792C 4.53:1

Dark page

  • Button labelText, 4.5:110.16:1 Passes
  • Link and body-size textText, 4.5:19.06:1 Passes
  • Large headingLarge text, 3:19.06:1 Passes
  • Icons, borders and focus ringsNon-text, 3:19.06:1 Passes

Color vision

How #BAB86C looks with color blindness

Tritanopia changes it most, ΔE2000 22.0; deuteranopia changes it least, 4.0.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #C3B266 ΔE2000 4.6

    Close match

    Reads as light muted amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #C5B66F ΔE2000 4.0

    Close match

    Reads as light muted amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #C4AFA6 ΔE2000 22.0

    Distinct

    Reads as light grayish red

  • Achromatopsia

    No cone color vision; lightness only

    #B4B4B4 ΔE2000 21.3

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #AFAAEF. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#BAB86C · #AFAAEF50.0Stays distinct
Protanopia#C3B266 · #97B3F245.2Stays distinct
Deuteranopia#C5B66F · #96AFED44.4Stays distinct
Tritanopia#C4AFA6 · #A0B6C220.0Stays distinct
Achromatopsia#B4B4B4 · #B1B1B10.8Easily confused

Harmony

Color harmonies for #BAB86C

Its complement is #AFAAEF, a light muted violet, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#BAB86C
  • Complement#AFAAEF

Complementary

Open in Harmony Studio
  • −30°#D7AB69
  • Base#BAB86C
  • +30°#95C284
  • Base#BAB86C
  • +120°#69C0E4
  • +240°#E29ABF
  • Base#BAB86C
  • +150°#8BB6F2
  • +210°#CDA0DD

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-crayola-olive-green: #bab86c;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'crayola-olive-green': '#bab86c',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-crayola-olive-green: oklch(0.767 0.098 107.2);
}

Design token (W3C DTCG)

{
  "color": {
    "crayola-olive-green": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.7294, 0.7216, 0.4235],
        "hex": "#bab86c"
      },
      "$description": "Crayola Olive Green"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let crayolaOliveGreen = Color(.sRGB, red: 0.729, green: 0.722, blue: 0.424, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val CrayolaOliveGreen = Color(0xFFBAB86C)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #BAB86C in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.