#66871F#66871F

#66871F is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.8% C 0.133 H 126.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#66871F
RGBrgb(102, 135, 31)
HSLhsl(79, 63%, 33%)
HSVhsv(79, 77%, 53%)
CMYKcmyk(24.4%, 0%, 77%, 47.1%)
CIE-LABlab(52.12, -27.13, 48.57)
CIE-LCHlch(52.12, 55.64, 119.18°)
OKLaboklab(57.8% -0.0784 0.1078)
OKLCHoklch(57.8% 0.133 126)
XYZxyz(14.3909, 20.2514, 4.4468)
Luminance0.2025 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66871F #401F87
analogous
#87741F #66871F #32871F
triadic
#66871F #1F6687 #871F66
tetradic
#66871F #1F8774 #401F87 #871F32
square
#66871F #1F8774 #401F87 #871F32
split-complementary
#66871F #1F3287 #741F87
monochromatic
#1B2308 #405514 #66871F #8CB92A #AAD64B

Accessibility & contrast

On white

4.16
#66871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#66871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #66871F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66871F#FFFFFF#000000##000000
##66871F1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E07
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#6B8073
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #66871f;
/* rgb */ color: rgb(102, 135, 31);
/* oklch */ color: oklch(57.8% 0.133 126.0);
Tailwind
colors: {
  custom: {
    50: '#95aa63',
    500: '#66871f',
    950: '#000000',
  },
}
SCSS
$custom: #66871f;
$custom-light: #95aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#66871f",
  "rgb": {
    "r": 102,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 79.038,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57805,
    "c": 0.1333,
    "h": 126
  },
  "luminance": 0.20252
}

Semantic roles & 50–950 ramp

primary
#66871F
secondary
#6D4AB8
accent
#42E676
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #66871F

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

Preview Lab → · Contrast checker → · Palette generator →

#66871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva