#668B1F#668B1F

#668B1F is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.8% C 0.138 H 127.2°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#668B1F
RGBrgb(102, 139, 31)
HSLhsl(81, 64%, 33%)
HSVhsv(81, 78%, 55%)
CMYKcmyk(26.6%, 0%, 77.7%, 45.5%)
CIE-LABlab(53.37, -29.06, 49.77)
CIE-LCHlch(53.37, 57.63, 120.28°)
OKLaboklab(58.82% -0.0837 0.1103)
OKLCHoklch(58.82% 0.138 127.2)
XYZxyz(14.9595, 21.3886, 4.6363)
Luminance0.2139 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668B1F #441F8B
analogous
#8B7A1F #668B1F #308B1F
triadic
#668B1F #1F668B #8B1F66
tetradic
#668B1F #1F8B7A #441F8B #8B1F30
square
#668B1F #1F8B7A #441F8B #8B1F30
split-complementary
#668B1F #1F308B #7A1F8B
monochromatic
#1D2709 #415914 #668B1F #8BBD2A #A8D74D

Accessibility & contrast

On white

3.98
#668B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#668B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668B1F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668B1F#FFFFFF#000000##000000
##668B1F1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928105
Deuteranopia (green-blind)
#8D7F2A
Tritanopia (blue-blind)
#6A8477
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #668b1f;
/* rgb */ color: rgb(102, 139, 31);
/* oklch */ color: oklch(58.8% 0.138 127.2);
Tailwind
colors: {
  custom: {
    50: '#95ad64',
    500: '#668b1f',
    950: '#000000',
  },
}
SCSS
$custom: #668b1f;
$custom-light: #95ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#668b1f",
  "rgb": {
    "r": 102,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 80.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5882,
    "c": 0.13846,
    "h": 127.2
  },
  "luminance": 0.21389
}

Semantic roles & 50–950 ramp

primary
#668B1F
secondary
#724CBA
accent
#41E77A
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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