#668C1F#668C1F

#668C1F is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 59.1% C 0.140 H 127.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#668C1F
RGBrgb(102, 140, 31)
HSLhsl(81, 64%, 34%)
HSVhsv(81, 78%, 55%)
CMYKcmyk(27.1%, 0%, 77.9%, 45.1%)
CIE-LABlab(53.69, -29.54, 50.07)
CIE-LCHlch(53.69, 58.13, 120.54°)
OKLaboklab(59.08% -0.085 0.1109)
OKLCHoklch(59.08% 0.14 127.5)
XYZxyz(15.1049, 21.6796, 4.6848)
Luminance0.2168 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668C1F #451F8C
analogous
#8C7B1F #668C1F #308C1F
triadic
#668C1F #1F668C #8C1F66
tetradic
#668C1F #1F8C7B #451F8C #8C1F30
square
#668C1F #1F8C7B #451F8C #8C1F30
split-complementary
#668C1F #1F308C #7B1F8C
monochromatic
#1D2809 #415A14 #668C1F #8BBE2A #A8D84E

Accessibility & contrast

On white

3.94
#668C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#668C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668C1F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668C1F#FFFFFF#000000##000000
##668C1F1.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938204
Deuteranopia (green-blind)
#8E802A
Tritanopia (blue-blind)
#6A8577
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #668c1f;
/* rgb */ color: rgb(102, 140, 31);
/* oklch */ color: oklch(59.1% 0.140 127.5);
Tailwind
colors: {
  custom: {
    50: '#95ad64',
    500: '#668c1f',
    950: '#000000',
  },
}
SCSS
$custom: #668c1f;
$custom-light: #95ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#668c1f",
  "rgb": {
    "r": 102,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 80.917,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59075,
    "c": 0.13975,
    "h": 127.5
  },
  "luminance": 0.2168
}

Semantic roles & 50–950 ramp

primary
#668C1F
secondary
#734CBB
accent
#41E77B
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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