#42811B#42811B

#42811B is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.1% C 0.147 H 136.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#42811B
RGBrgb(66, 129, 27)
HSLhsl(97, 65%, 31%)
HSVhsv(97, 79%, 51%)
CMYKcmyk(48.8%, 0%, 79.1%, 49.4%)
CIE-LABlab(48.18, -38.30, 45.51)
CIE-LCHlch(48.18, 59.48, 130.09°)
OKLaboklab(54.05% -0.1066 0.1015)
OKLCHoklch(54.05% 0.147 136.4)
XYZxyz(10.2946, 16.9372, 3.7635)
Luminance0.1694 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42811B #5A1B81
analogous
#75811B #42811B #1B8127
triadic
#42811B #1B4281 #811B42
tetradic
#42811B #1B7581 #5A1B81 #81271B
square
#42811B #1B7581 #5A1B81 #81271B
split-complementary
#42811B #271B81 #811B75
monochromatic
#0E1C06 #284E10 #42811B #5CB426 #79D73F

Accessibility & contrast

On white

4.79
#42811B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #42811B
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42811B#FFFFFF#000000##FFFFFF
##42811B1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867602
Deuteranopia (green-blind)
#7D7026
Tritanopia (blue-blind)
#3F7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #42811b;
/* rgb */ color: rgb(66, 129, 27);
/* oklch */ color: oklch(54.1% 0.147 136.4);
Tailwind
colors: {
  custom: {
    50: '#7da660',
    500: '#42811b',
    950: '#000000',
  },
}
SCSS
$custom: #42811b;
$custom-light: #7da660;
$custom-dark: #000000;
JSON
{
  "hex": "#42811b",
  "rgb": {
    "r": 66,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 97.059,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54054,
    "c": 0.14719,
    "h": 136.4
  },
  "luminance": 0.16938
}

Semantic roles & 50–950 ramp

primary
#42811B
secondary
#8943B5
accent
#3FE8A8
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42811B

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

Preview Lab → · Contrast checker → · Palette generator →

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