#42811A#42811A

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

Color values

HEX#42811A
RGBrgb(66, 129, 26)
HSLhsl(97, 66%, 30%)
HSVhsv(97, 80%, 51%)
CMYKcmyk(48.8%, 0%, 79.8%, 49.4%)
CIE-LABlab(48.18, -38.37, 45.85)
CIE-LCHlch(48.18, 59.78, 129.93°)
OKLaboklab(54.05% -0.1068 0.102)
OKLCHoklch(54.05% 0.148 136.3)
XYZxyz(10.2832, 16.9327, 3.7036)
Luminance0.1693 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42811A #591A81
analogous
#75811A #42811A #1A8125
triadic
#42811A #1A4281 #811A42
tetradic
#42811A #1A7581 #591A81 #81251A
square
#42811A #1A7581 #591A81 #81251A
split-complementary
#42811A #251A81 #811A75
monochromatic
#0E1B05 #284E10 #42811A #5CB424 #79D83D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42811A#FFFFFF#000000##FFFFFF
##42811A1.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)
#867600
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#3F7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #42811a;
/* rgb */ color: rgb(66, 129, 26);
/* oklch */ color: oklch(54.0% 0.148 136.3);
Tailwind
colors: {
  custom: {
    50: '#7da65f',
    500: '#42811a',
    950: '#000000',
  },
}
SCSS
$custom: #42811a;
$custom-light: #7da65f;
$custom-dark: #000000;
JSON
{
  "hex": "#42811a",
  "rgb": {
    "r": 66,
    "g": 129,
    "b": 26
  },
  "hsl": {
    "h": 96.699,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54047,
    "c": 0.14773,
    "h": 136.3
  },
  "luminance": 0.16933
}

Semantic roles & 50–950 ramp

primary
#42811A
secondary
#8842B5
accent
#3EE9A7
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42811A

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

Preview Lab → · Contrast checker → · Palette generator →

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