#42811C#42811C

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

Color values

HEX#42811C
RGBrgb(66, 129, 28)
HSLhsl(97, 64%, 31%)
HSVhsv(97, 78%, 51%)
CMYKcmyk(48.8%, 0%, 78.3%, 49.4%)
CIE-LABlab(48.19, -38.24, 45.16)
CIE-LCHlch(48.19, 59.18, 130.25°)
OKLaboklab(54.06% -0.1064 0.1009)
OKLCHoklch(54.06% 0.147 136.5)
XYZxyz(10.3063, 16.9419, 3.8254)
Luminance0.1694 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42811C #5B1C81
analogous
#74811C #42811C #1C8129
triadic
#42811C #1C4281 #811C42
tetradic
#42811C #1C7481 #5B1C81 #81291C
square
#42811C #1C7481 #5B1C81 #81291C
split-complementary
#42811C #291C81 #811C74
monochromatic
#0F1C06 #284F11 #42811C #5CB327 #79D642

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #42811c;
/* rgb */ color: rgb(66, 129, 28);
/* oklch */ color: oklch(54.1% 0.147 136.5);
Tailwind
colors: {
  custom: {
    50: '#7da660',
    500: '#42811c',
    950: '#000000',
  },
}
SCSS
$custom: #42811c;
$custom-light: #7da660;
$custom-dark: #000000;
JSON
{
  "hex": "#42811c",
  "rgb": {
    "r": 66,
    "g": 129,
    "b": 28
  },
  "hsl": {
    "h": 97.426,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5406,
    "c": 0.14662,
    "h": 136.5
  },
  "luminance": 0.16943
}

Semantic roles & 50–950 ramp

primary
#42811C
secondary
#8A44B4
accent
#40E7A9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42811C

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

Preview Lab → · Contrast checker → · Palette generator →

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