#668E1B#668E1B

#668E1B is a mid, vivid yellow-green. Relative luminance 0.223; OKLCH L 59.6% C 0.144 H 127.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#668E1B
RGBrgb(102, 142, 27)
HSLhsl(81, 68%, 33%)
HSVhsv(81, 81%, 56%)
CMYKcmyk(28.2%, 0%, 81%, 44.3%)
CIE-LABlab(54.29, -30.69, 51.93)
CIE-LCHlch(54.29, 60.32, 120.58°)
OKLaboklab(59.56% -0.0884 0.1142)
OKLCHoklch(59.56% 0.144 127.7)
XYZxyz(15.3504, 22.2496, 4.5225)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668E1B #431B8E
analogous
#8E7C1B #668E1B #2C8E1B
triadic
#668E1B #1B668E #8E1B66
tetradic
#668E1B #1B8E7C #431B8E #8E1B2C
square
#668E1B #1B8E7C #431B8E #8E1B2C
split-complementary
#668E1B #1B2C8E #7C1B8E
monochromatic
#1C2707 #415B11 #668E1B #8BC125 #A8DC47

Accessibility & contrast

On white

3.85
#668E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#668E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668E1B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668E1B#FFFFFF#000000##000000
##668E1B1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958400
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#6A8779
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #668e1b;
/* rgb */ color: rgb(102, 142, 27);
/* oklch */ color: oklch(59.6% 0.144 127.7);
Tailwind
colors: {
  custom: {
    50: '#96af62',
    500: '#668e1b',
    950: '#000000',
  },
}
SCSS
$custom: #668e1b;
$custom-light: #96af62;
$custom-dark: #000000;
JSON
{
  "hex": "#668e1b",
  "rgb": {
    "r": 102,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 80.87,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5956,
    "c": 0.14441,
    "h": 127.7
  },
  "luminance": 0.2225
}

Semantic roles & 50–950 ramp

primary
#668E1B
secondary
#7047BE
accent
#3DEB79
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668E1B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#668E1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva