#42881B#42881B

#42881B is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.0% C 0.156 H 137.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#42881B
RGBrgb(66, 136, 27)
HSLhsl(99, 67%, 32%)
HSVhsv(99, 80%, 53%)
CMYKcmyk(51.5%, 0%, 80.1%, 46.7%)
CIE-LABlab(50.51, -41.18, 47.73)
CIE-LCHlch(50.51, 63.04, 130.78°)
OKLaboklab(55.97% -0.1143 0.1061)
OKLCHoklch(55.97% 0.156 137.1)
XYZxyz(11.2484, 18.8449, 4.0814)
Luminance0.1885 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42881B #611B88
analogous
#79881B #42881B #1B882B
triadic
#42881B #1B4288 #881B42
tetradic
#42881B #1B7988 #611B88 #882B1B
square
#42881B #1B7988 #611B88 #882B1B
split-complementary
#42881B #2B1B88 #881B79
monochromatic
#102207 #295511 #42881B #5BBB25 #79DA44

Accessibility & contrast

On white

4.40
#42881B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#42881B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42881B
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42881B#FFFFFF#000000##000000
##42881B1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#847627
Tritanopia (blue-blind)
#3E8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #42881b;
/* rgb */ color: rgb(66, 136, 27);
/* oklch */ color: oklch(56.0% 0.156 137.1);
Tailwind
colors: {
  custom: {
    50: '#7eab61',
    500: '#42881b',
    950: '#000000',
  },
}
SCSS
$custom: #42881b;
$custom-light: #7eab61;
$custom-dark: #000000;
JSON
{
  "hex": "#42881b",
  "rgb": {
    "r": 66,
    "g": 136,
    "b": 27
  },
  "hsl": {
    "h": 98.532,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55965,
    "c": 0.156,
    "h": 137.1
  },
  "luminance": 0.18846
}

Semantic roles & 50–950 ramp

primary
#42881B
secondary
#9044BB
accent
#3EEAAC
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #42881B

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

Preview Lab → · Contrast checker → · Palette generator →

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