#42771F#42771F

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

Color values

HEX#42771F
RGBrgb(66, 119, 31)
HSLhsl(96, 59%, 29%)
HSVhsv(96, 74%, 47%)
CMYKcmyk(44.5%, 0%, 73.9%, 53.3%)
CIE-LABlab(44.87, -33.72, 40.72)
CIE-LCHlch(44.87, 52.87, 129.63°)
OKLaboklab(51.35% -0.0939 0.0921)
OKLCHoklch(51.35% 0.132 135.6)
XYZxyz(9.0907, 14.4503, 3.6062)
Luminance0.1445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42771F #541F77
analogous
#6E771F #42771F #1F7728
triadic
#42771F #1F4277 #771F42
tetradic
#42771F #1F6E77 #541F77 #77281F
square
#42771F #1F6E77 #541F77 #77281F
split-complementary
#42771F #281F77 #771F6E
monochromatic
#0D1806 #274612 #42771F #5DA82C #7ACE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42771F#FFFFFF#000000##FFFFFF
##42771F1.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)
#7B6D10
Deuteranopia (green-blind)
#746927
Tritanopia (blue-blind)
#407266
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #42771f;
/* rgb */ color: rgb(66, 119, 31);
/* oklch */ color: oklch(51.3% 0.132 135.6);
Tailwind
colors: {
  custom: {
    50: '#7b9f61',
    500: '#42771f',
    950: '#000000',
  },
}
SCSS
$custom: #42771f;
$custom-light: #7b9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#42771f",
  "rgb": {
    "r": 66,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 96.136,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51346,
    "c": 0.13156,
    "h": 135.6
  },
  "luminance": 0.14451
}

Semantic roles & 50–950 ramp

primary
#42771F
secondary
#8347AB
accent
#46E2A4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42771F

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

Preview Lab → · Contrast checker → · Palette generator →

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