#42811D#42811D

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

Color values

HEX#42811D
RGBrgb(66, 129, 29)
HSLhsl(98, 63%, 31%)
HSVhsv(98, 78%, 51%)
CMYKcmyk(48.8%, 0%, 77.5%, 49.4%)
CIE-LABlab(48.19, -38.17, 44.81)
CIE-LCHlch(48.19, 58.86, 130.43°)
OKLaboklab(54.07% -0.1061 0.1003)
OKLCHoklch(54.07% 0.146 136.6)
XYZxyz(10.3185, 16.9468, 3.8895)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42811D #5C1D81
analogous
#74811D #42811D #1D812A
triadic
#42811D #1D4281 #811D42
tetradic
#42811D #1D7481 #5C1D81 #812A1D
square
#42811D #1D7481 #5C1D81 #812A1D
split-complementary
#42811D #2A1D81 #811D74
monochromatic
#0F1D07 #284F12 #42811D #5CB328 #79D544

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42811D#FFFFFF#000000##FFFFFF
##42811D1.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)
#867607
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#3F7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #42811d;
/* rgb */ color: rgb(66, 129, 29);
/* oklch */ color: oklch(54.1% 0.146 136.6);
Tailwind
colors: {
  custom: {
    50: '#7da661',
    500: '#42811d',
    950: '#000000',
  },
}
SCSS
$custom: #42811d;
$custom-light: #7da661;
$custom-dark: #000000;
JSON
{
  "hex": "#42811d",
  "rgb": {
    "r": 66,
    "g": 129,
    "b": 29
  },
  "hsl": {
    "h": 97.8,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54067,
    "c": 0.14604,
    "h": 136.6
  },
  "luminance": 0.16947
}

Semantic roles & 50–950 ramp

primary
#42811D
secondary
#8B46B4
accent
#41E6A9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42811D

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

Preview Lab → · Contrast checker → · Palette generator →

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