#42871C#42871C

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

Color values

HEX#42871C
RGBrgb(66, 135, 28)
HSLhsl(99, 66%, 32%)
HSVhsv(99, 79%, 53%)
CMYKcmyk(51.1%, 0%, 79.3%, 47.1%)
CIE-LABlab(50.18, -40.71, 47.09)
CIE-LCHlch(50.18, 62.24, 130.85°)
OKLaboklab(55.7% -0.113 0.1049)
OKLCHoklch(55.7% 0.154 137.1)
XYZxyz(11.1200, 18.5692, 4.0966)
Luminance0.1857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42871C #611C87
analogous
#77871C #42871C #1C872C
triadic
#42871C #1C4287 #871C42
tetradic
#42871C #1C7787 #611C87 #872C1C
square
#42871C #1C7787 #611C87 #872C1C
split-complementary
#42871C #2C1C87 #871C77
monochromatic
#102207 #295411 #42871C #5BBA27 #79D845

Accessibility & contrast

On white

4.45
#42871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##42871C#FFFFFF#000000##000000
##42871C1.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42871c;
/* rgb */ color: rgb(66, 135, 28);
/* oklch */ color: oklch(55.7% 0.154 137.1);
Tailwind
colors: {
  custom: {
    50: '#7eaa61',
    500: '#42871c',
    950: '#000000',
  },
}
SCSS
$custom: #42871c;
$custom-light: #7eaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#42871c",
  "rgb": {
    "r": 66,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 98.692,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55699,
    "c": 0.15422,
    "h": 137.1
  },
  "luminance": 0.1857
}

Semantic roles & 50–950 ramp

primary
#42871C
secondary
#9045BA
accent
#3FE9AC
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42871C

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

Preview Lab → · Contrast checker → · Palette generator →

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