#42811F#42811F

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

Color values

HEX#42811F
RGBrgb(66, 129, 31)
HSLhsl(99, 61%, 31%)
HSVhsv(99, 76%, 51%)
CMYKcmyk(48.8%, 0%, 76%, 49.4%)
CIE-LABlab(48.21, -38.03, 44.08)
CIE-LCHlch(48.21, 58.22, 130.79°)
OKLaboklab(54.08% -0.1056 0.0991)
OKLCHoklch(54.08% 0.145 136.8)
XYZxyz(10.3440, 16.9570, 4.0240)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42811F #5E1F81
analogous
#73811F #42811F #1F812D
triadic
#42811F #1F4281 #811F42
tetradic
#42811F #1F7381 #5E1F81 #812D1F
square
#42811F #1F7381 #5E1F81 #812D1F
split-complementary
#42811F #2D1F81 #811F73
monochromatic
#101E07 #295013 #42811F #5BB22B #79D347

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42811F#FFFFFF#000000##FFFFFF
##42811F1.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)
#86760C
Deuteranopia (green-blind)
#7D7029
Tritanopia (blue-blind)
#3F7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #42811f;
/* rgb */ color: rgb(66, 129, 31);
/* oklch */ color: oklch(54.1% 0.145 136.8);
Tailwind
colors: {
  custom: {
    50: '#7da662',
    500: '#42811f',
    950: '#000000',
  },
}
SCSS
$custom: #42811f;
$custom-light: #7da662;
$custom-dark: #000000;
JSON
{
  "hex": "#42811f",
  "rgb": {
    "r": 66,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 98.571,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54082,
    "c": 0.14482,
    "h": 136.8
  },
  "luminance": 0.16958
}

Semantic roles & 50–950 ramp

primary
#42811F
secondary
#8D48B4
accent
#43E4AB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42811F

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

Preview Lab → · Contrast checker → · Palette generator →

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