#42881C#42881C

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

Color values

HEX#42881C
RGBrgb(66, 136, 28)
HSLhsl(99, 66%, 32%)
HSVhsv(99, 79%, 53%)
CMYKcmyk(51.5%, 0%, 79.4%, 46.7%)
CIE-LABlab(50.51, -41.12, 47.40)
CIE-LCHlch(50.51, 62.75, 130.94°)
OKLaboklab(55.97% -0.1141 0.1056)
OKLCHoklch(55.97% 0.155 137.2)
XYZxyz(11.2602, 18.8496, 4.1434)
Luminance0.1885 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42881C #621C88
analogous
#78881C #42881C #1C882C
triadic
#42881C #1C4288 #881C42
tetradic
#42881C #1C7888 #621C88 #882C1C
square
#42881C #1C7888 #621C88 #882C1C
split-complementary
#42881C #2C1C88 #881C78
monochromatic
#112207 #295512 #42881C #5BBB26 #79D946

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42881C#FFFFFF#000000##000000
##42881C1.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)
#8D7C01
Deuteranopia (green-blind)
#847628
Tritanopia (blue-blind)
#3E8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #42881c;
/* rgb */ color: rgb(66, 136, 28);
/* oklch */ color: oklch(56.0% 0.155 137.2);
Tailwind
colors: {
  custom: {
    50: '#7eab61',
    500: '#42881c',
    950: '#000000',
  },
}
SCSS
$custom: #42881c;
$custom-light: #7eab61;
$custom-dark: #000000;
JSON
{
  "hex": "#42881c",
  "rgb": {
    "r": 66,
    "g": 136,
    "b": 28
  },
  "hsl": {
    "h": 98.889,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55972,
    "c": 0.15547,
    "h": 137.2
  },
  "luminance": 0.1885
}

Semantic roles & 50–950 ramp

primary
#42881C
secondary
#9145BA
accent
#3FE9AD
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #42881C

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

Preview Lab → · Contrast checker → · Palette generator →

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