#668A1F#668A1F

#668A1F is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.6% C 0.137 H 126.9°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#668A1F
RGBrgb(102, 138, 31)
HSLhsl(80, 63%, 33%)
HSVhsv(80, 78%, 54%)
CMYKcmyk(26.1%, 0%, 77.5%, 45.9%)
CIE-LABlab(53.06, -28.58, 49.47)
CIE-LCHlch(53.06, 57.13, 120.02°)
OKLaboklab(58.57% -0.0824 0.1097)
OKLCHoklch(58.57% 0.137 126.9)
XYZxyz(14.8153, 21.1004, 4.5883)
Luminance0.2110 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668A1F #431F8A
analogous
#8A781F #668A1F #308A1F
triadic
#668A1F #1F668A #8A1F66
tetradic
#668A1F #1F8A78 #431F8A #8A1F30
square
#668A1F #1F8A78 #431F8A #8A1F30
split-complementary
#668A1F #1F308A #781F8A
monochromatic
#1C2609 #415814 #668A1F #8BBC2A #A8D74C

Accessibility & contrast

On white

4.02
#668A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#668A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668A1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668A1F#FFFFFF#000000##000000
##668A1F1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918006
Deuteranopia (green-blind)
#8D7E29
Tritanopia (blue-blind)
#6A8376
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #668a1f;
/* rgb */ color: rgb(102, 138, 31);
/* oklch */ color: oklch(58.6% 0.137 126.9);
Tailwind
colors: {
  custom: {
    50: '#95ac64',
    500: '#668a1f',
    950: '#000000',
  },
}
SCSS
$custom: #668a1f;
$custom-light: #95ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#668a1f",
  "rgb": {
    "r": 102,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 80.187,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58566,
    "c": 0.13717,
    "h": 126.9
  },
  "luminance": 0.21101
}

Semantic roles & 50–950 ramp

primary
#668A1F
secondary
#704BBA
accent
#41E679
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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