#42711B#42711B

#42711B is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.7% C 0.126 H 134.1°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#42711B
RGBrgb(66, 113, 27)
HSLhsl(93, 61%, 27%)
HSVhsv(93, 76%, 44%)
CMYKcmyk(41.6%, 0%, 76.1%, 55.7%)
CIE-LABlab(42.83, -31.33, 40.27)
CIE-LCHlch(42.83, 51.02, 127.88°)
OKLaboklab(49.67% -0.0878 0.0905)
OKLCHoklch(49.67% 0.126 134.1)
XYZxyz(8.3496, 13.0472, 3.1151)
Luminance0.1305 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42711B #4A1B71
analogous
#6D711B #42711B #1B711F
triadic
#42711B #1B4271 #711B42
tetradic
#42711B #1B6D71 #4A1B71 #711F1B
square
#42711B #1B6D71 #4A1B71 #711F1B
split-complementary
#42711B #1F1B71 #711B6D
monochromatic
#0E1906 #25400F #42711B #5FA227 #7CCF37

Accessibility & contrast

On white

5.82
#42711B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#42711B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42711B
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42711B#FFFFFF#000000##FFFFFF
##42711B1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680B
Deuteranopia (green-blind)
#6F6423
Tritanopia (blue-blind)
#426C60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #42711b;
/* rgb */ color: rgb(66, 113, 27);
/* oklch */ color: oklch(49.7% 0.126 134.1);
Tailwind
colors: {
  custom: {
    50: '#7b9a5e',
    500: '#42711b',
    950: '#000000',
  },
}
SCSS
$custom: #42711b;
$custom-light: #7b9a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#42711b",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 27
  },
  "hsl": {
    "h": 92.791,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49669,
    "c": 0.1261,
    "h": 134.1
  },
  "luminance": 0.13048
}

Semantic roles & 50–950 ramp

primary
#42711B
secondary
#7942A6
accent
#43E59B
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42711B

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

Preview Lab → · Contrast checker → · Palette generator →

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