#42771B#42771B

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

Color values

HEX#42771B
RGBrgb(66, 119, 27)
HSLhsl(95, 63%, 29%)
HSVhsv(95, 77%, 47%)
CMYKcmyk(44.5%, 0%, 77.3%, 53.3%)
CIE-LABlab(44.84, -34.02, 42.26)
CIE-LCHlch(44.84, 54.25, 128.83°)
OKLaboklab(51.32% -0.095 0.0947)
OKLCHoklch(51.32% 0.134 135.1)
XYZxyz(9.0412, 14.4305, 3.3457)
Luminance0.1443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42771B #501B77
analogous
#70771B #42771B #1B7722
triadic
#42771B #1B4277 #771B42
tetradic
#42771B #1B7077 #501B77 #77221B
square
#42771B #1B7077 #501B77 #77221B
split-complementary
#42771B #221B77 #771B70
monochromatic
#0E1906 #264510 #42771B #5EA926 #7BD23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42771B#FFFFFF#000000##FFFFFF
##42771B1.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)
#7C6D08
Deuteranopia (green-blind)
#756824
Tritanopia (blue-blind)
#417265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #42771b;
/* rgb */ color: rgb(66, 119, 27);
/* oklch */ color: oklch(51.3% 0.134 135.1);
Tailwind
colors: {
  custom: {
    50: '#7c9f5e',
    500: '#42771b',
    950: '#000000',
  },
}
SCSS
$custom: #42771b;
$custom-light: #7c9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#42771b",
  "rgb": {
    "r": 66,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 94.565,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51315,
    "c": 0.13417,
    "h": 135.1
  },
  "luminance": 0.14431
}

Semantic roles & 50–950 ramp

primary
#42771B
secondary
#7F42AB
accent
#42E6A0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42771B

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

Preview Lab → · Contrast checker → · Palette generator →

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