#42871B#42871B

#42871B is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 55.7% C 0.155 H 137.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#42871B
RGBrgb(66, 135, 27)
HSLhsl(98, 67%, 32%)
HSVhsv(98, 80%, 53%)
CMYKcmyk(51.1%, 0%, 80%, 47.1%)
CIE-LABlab(50.17, -40.77, 47.41)
CIE-LCHlch(50.17, 62.54, 130.69°)
OKLaboklab(55.69% -0.1132 0.1055)
OKLCHoklch(55.69% 0.155 137)
XYZxyz(11.1082, 18.5645, 4.0347)
Luminance0.1857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42871B #601B87
analogous
#78871B #42871B #1B872A
triadic
#42871B #1B4287 #871B42
tetradic
#42871B #1B7887 #601B87 #872A1B
square
#42871B #1B7887 #601B87 #872A1B
split-complementary
#42871B #2A1B87 #871B78
monochromatic
#102107 #295411 #42871B #5BBA25 #79D943

Accessibility & contrast

On white

4.46
#42871B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#42871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42871B
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42871B#FFFFFF#000000##000000
##42871B1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#837527
Tritanopia (blue-blind)
#3E8273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #42871b;
/* rgb */ color: rgb(66, 135, 27);
/* oklch */ color: oklch(55.7% 0.155 137.0);
Tailwind
colors: {
  custom: {
    50: '#7eaa61',
    500: '#42871b',
    950: '#000000',
  },
}
SCSS
$custom: #42871b;
$custom-light: #7eaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#42871b",
  "rgb": {
    "r": 66,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 98.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55693,
    "c": 0.15476,
    "h": 137
  },
  "luminance": 0.18565
}

Semantic roles & 50–950 ramp

primary
#42871B
secondary
#8F44BA
accent
#3EEAAC
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42871B

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

Preview Lab → · Contrast checker → · Palette generator →

#42871B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva