#668E1F#668E1F

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

Color values

HEX#668E1F
RGBrgb(102, 142, 31)
HSLhsl(82, 64%, 34%)
HSVhsv(82, 78%, 56%)
CMYKcmyk(28.2%, 0%, 78.2%, 44.3%)
CIE-LABlab(54.31, -30.49, 50.66)
CIE-LCHlch(54.31, 59.12, 121.04°)
OKLaboklab(59.58% -0.0876 0.1122)
OKLCHoklch(59.58% 0.142 128)
XYZxyz(15.3998, 22.2694, 4.7831)
Luminance0.2227 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668E1F #471F8E
analogous
#8E7F1F #668E1F #2E8E1F
triadic
#668E1F #1F668E #8E1F66
tetradic
#668E1F #1F8E7F #471F8E #8E1F2E
square
#668E1F #1F8E7F #471F8E #8E1F2E
split-complementary
#668E1F #1F2E8E #7F1F8E
monochromatic
#1E2A09 #425C14 #668E1F #8AC02A #A7D94F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##668E1F#FFFFFF#000000##000000
##668E1F1.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)
#958403
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#6A8779
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #668e1f;
/* rgb */ color: rgb(102, 142, 31);
/* oklch */ color: oklch(59.6% 0.142 128.0);
Tailwind
colors: {
  custom: {
    50: '#95af64',
    500: '#668e1f',
    950: '#000000',
  },
}
SCSS
$custom: #668e1f;
$custom-light: #95af64;
$custom-dark: #000000;
JSON
{
  "hex": "#668e1f",
  "rgb": {
    "r": 102,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 81.622,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59583,
    "c": 0.14231,
    "h": 128
  },
  "luminance": 0.2227
}

Semantic roles & 50–950 ramp

primary
#668E1F
secondary
#754DBB
accent
#41E77D
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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