#668F1F#668F1F

#668F1F is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 59.8% C 0.144 H 128.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#668F1F
RGBrgb(102, 143, 31)
HSLhsl(82, 64%, 34%)
HSVhsv(82, 78%, 56%)
CMYKcmyk(28.7%, 0%, 78.3%, 43.9%)
CIE-LABlab(54.62, -30.96, 50.95)
CIE-LCHlch(54.62, 59.62, 121.28°)
OKLaboklab(59.84% -0.0888 0.1128)
OKLCHoklch(59.84% 0.144 128.2)
XYZxyz(15.5493, 22.5683, 4.8329)
Luminance0.2257 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668F1F #481F8F
analogous
#8F801F #668F1F #2E8F1F
triadic
#668F1F #1F668F #8F1F66
tetradic
#668F1F #1F8F80 #481F8F #8F1F2E
square
#668F1F #1F8F80 #481F8F #8F1F2E
split-complementary
#668F1F #1F2E8F #801F8F
monochromatic
#1E2A09 #425D14 #668F1F #8AC12A #A7D94F

Accessibility & contrast

On white

3.81
#668F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#668F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668F1F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668F1F#FFFFFF#000000##000000
##668F1F1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968402
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#6A887A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #668f1f;
/* rgb */ color: rgb(102, 143, 31);
/* oklch */ color: oklch(59.8% 0.144 128.2);
Tailwind
colors: {
  custom: {
    50: '#95b064',
    500: '#668f1f',
    950: '#000000',
  },
}
SCSS
$custom: #668f1f;
$custom-light: #95b064;
$custom-dark: #000000;
JSON
{
  "hex": "#668f1f",
  "rgb": {
    "r": 102,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 81.964,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59838,
    "c": 0.14358,
    "h": 128.2
  },
  "luminance": 0.22569
}

Semantic roles & 50–950 ramp

primary
#668F1F
secondary
#764EBC
accent
#40E77E
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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