#42811E#42811E

#42811E is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.1% C 0.145 H 136.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#42811E
RGBrgb(66, 129, 30)
HSLhsl(98, 62%, 31%)
HSVhsv(98, 77%, 51%)
CMYKcmyk(48.8%, 0%, 76.7%, 49.4%)
CIE-LABlab(48.20, -38.10, 44.45)
CIE-LCHlch(48.20, 58.54, 130.60°)
OKLaboklab(54.08% -0.1058 0.0997)
OKLCHoklch(54.08% 0.145 136.7)
XYZxyz(10.3311, 16.9518, 3.9557)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42811E #5D1E81
analogous
#73811E #42811E #1E812B
triadic
#42811E #1E4281 #811E42
tetradic
#42811E #1E7381 #5D1E81 #812B1E
square
#42811E #1E7381 #5D1E81 #812B1E
split-complementary
#42811E #2B1E81 #811E73
monochromatic
#0F1E07 #294F12 #42811E #5BB32A #79D446

Accessibility & contrast

On white

4.78
#42811E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#42811E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42811E
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42811E#FFFFFF#000000##FFFFFF
##42811E1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760A
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#3F7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #42811e;
/* rgb */ color: rgb(66, 129, 30);
/* oklch */ color: oklch(54.1% 0.145 136.7);
Tailwind
colors: {
  custom: {
    50: '#7da661',
    500: '#42811e',
    950: '#000000',
  },
}
SCSS
$custom: #42811e;
$custom-light: #7da661;
$custom-dark: #000000;
JSON
{
  "hex": "#42811e",
  "rgb": {
    "r": 66,
    "g": 129,
    "b": 30
  },
  "hsl": {
    "h": 98.182,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54075,
    "c": 0.14544,
    "h": 136.7
  },
  "luminance": 0.16953
}

Semantic roles & 50–950 ramp

primary
#42811E
secondary
#8C47B4
accent
#42E5AA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42811E

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

Preview Lab → · Contrast checker → · Palette generator →

#42811E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva