#668D1F#668D1F

#668D1F is a mid, vivid yellow-green. Relative luminance 0.220; OKLCH L 59.3% C 0.141 H 127.7°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#668D1F
RGBrgb(102, 141, 31)
HSLhsl(81, 64%, 34%)
HSVhsv(81, 78%, 55%)
CMYKcmyk(27.7%, 0%, 78%, 44.7%)
CIE-LABlab(54.00, -30.01, 50.36)
CIE-LCHlch(54.00, 58.63, 120.79°)
OKLaboklab(59.33% -0.0863 0.1116)
OKLCHoklch(59.33% 0.141 127.7)
XYZxyz(15.2517, 21.9731, 4.7337)
Luminance0.2197 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668D1F #461F8D
analogous
#8D7D1F #668D1F #2F8D1F
triadic
#668D1F #1F668D #8D1F66
tetradic
#668D1F #1F8D7D #461F8D #8D1F2F
square
#668D1F #1F8D7D #461F8D #8D1F2F
split-complementary
#668D1F #1F2F8D #7D1F8D
monochromatic
#1D2909 #425B14 #668D1F #8ABF2A #A7D84E

Accessibility & contrast

On white

3.89
#668D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#668D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668D1F
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668D1F#FFFFFF#000000##000000
##668D1F1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948304
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#6A8678
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #668d1f;
/* rgb */ color: rgb(102, 141, 31);
/* oklch */ color: oklch(59.3% 0.141 127.7);
Tailwind
colors: {
  custom: {
    50: '#95ae64',
    500: '#668d1f',
    950: '#000000',
  },
}
SCSS
$custom: #668d1f;
$custom-light: #95ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#668d1f",
  "rgb": {
    "r": 102,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 81.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59329,
    "c": 0.14103,
    "h": 127.7
  },
  "luminance": 0.21973
}

Semantic roles & 50–950 ramp

primary
#668D1F
secondary
#744DBB
accent
#41E77C
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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