#42771E#42771E

#42771E is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.3% C 0.132 H 135.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#42771E
RGBrgb(66, 119, 30)
HSLhsl(96, 60%, 29%)
HSVhsv(96, 75%, 47%)
CMYKcmyk(44.5%, 0%, 74.8%, 53.3%)
CIE-LABlab(44.86, -33.80, 41.12)
CIE-LCHlch(44.86, 53.23, 129.42°)
OKLaboklab(51.34% -0.0942 0.0928)
OKLCHoklch(51.34% 0.132 135.4)
XYZxyz(9.0777, 14.4451, 3.5379)
Luminance0.1445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42771E #531E77
analogous
#6F771E #42771E #1E7726
triadic
#42771E #1E4277 #771E42
tetradic
#42771E #1E6F77 #531E77 #77261E
square
#42771E #1E6F77 #531E77 #77261E
split-complementary
#42771E #261E77 #771E6F
monochromatic
#0E1806 #274612 #42771E #5DA82A #7ACF40

Accessibility & contrast

On white

5.40
#42771E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#42771E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42771E
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42771E#FFFFFF#000000##FFFFFF
##42771E1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D0E
Deuteranopia (green-blind)
#746927
Tritanopia (blue-blind)
#407266
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #42771e;
/* rgb */ color: rgb(66, 119, 30);
/* oklch */ color: oklch(51.3% 0.132 135.4);
Tailwind
colors: {
  custom: {
    50: '#7b9f60',
    500: '#42771e',
    950: '#000000',
  },
}
SCSS
$custom: #42771e;
$custom-light: #7b9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#42771e",
  "rgb": {
    "r": 66,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 95.73,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51338,
    "c": 0.13223,
    "h": 135.4
  },
  "luminance": 0.14446
}

Semantic roles & 50–950 ramp

primary
#42771E
secondary
#8246AB
accent
#45E3A3
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42771E

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

Preview Lab → · Contrast checker → · Palette generator →

#42771E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva