#42771D#42771D

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

Color values

HEX#42771D
RGBrgb(66, 119, 29)
HSLhsl(95, 61%, 29%)
HSVhsv(95, 76%, 47%)
CMYKcmyk(44.5%, 0%, 75.6%, 53.3%)
CIE-LABlab(44.86, -33.87, 41.51)
CIE-LCHlch(44.86, 53.57, 129.22°)
OKLaboklab(51.33% -0.0945 0.0934)
OKLCHoklch(51.33% 0.133 135.3)
XYZxyz(9.0652, 14.4401, 3.4717)
Luminance0.1444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42771D #521D77
analogous
#6F771D #42771D #1D7725
triadic
#42771D #1D4277 #771D42
tetradic
#42771D #1D6F77 #521D77 #77251D
square
#42771D #1D6F77 #521D77 #77251D
split-complementary
#42771D #251D77 #771D6F
monochromatic
#0E1906 #274611 #42771D #5DA829 #7AD03E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42771D#FFFFFF#000000##FFFFFF
##42771D1.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)
#7C6D0C
Deuteranopia (green-blind)
#746926
Tritanopia (blue-blind)
#407266
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #42771d;
/* rgb */ color: rgb(66, 119, 29);
/* oklch */ color: oklch(51.3% 0.133 135.3);
Tailwind
colors: {
  custom: {
    50: '#7b9f5f',
    500: '#42771d',
    950: '#000000',
  },
}
SCSS
$custom: #42771d;
$custom-light: #7b9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#42771d",
  "rgb": {
    "r": 66,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 95.333,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5133,
    "c": 0.1329,
    "h": 135.3
  },
  "luminance": 0.14441
}

Semantic roles & 50–950 ramp

primary
#42771D
secondary
#8145AB
accent
#44E4A2
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42771D

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

Preview Lab → · Contrast checker → · Palette generator →

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