#42731E#42731E

#42731E is a mid, vivid yellow-green. Relative luminance 0.135; OKLCH L 50.2% C 0.127 H 134.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#42731E
RGBrgb(66, 115, 30)
HSLhsl(95, 59%, 28%)
HSVhsv(95, 74%, 45%)
CMYKcmyk(42.6%, 0%, 73.9%, 54.9%)
CIE-LABlab(43.53, -32.01, 39.76)
CIE-LCHlch(43.53, 51.04, 128.84°)
OKLaboklab(50.24% -0.0894 0.0899)
OKLCHoklch(50.24% 0.127 134.8)
XYZxyz(8.6117, 13.5130, 3.3826)
Luminance0.1351 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42731E #4F1E73
analogous
#6C731E #42731E #1E7324
triadic
#42731E #1E4273 #731E42
tetradic
#42731E #1E6C73 #4F1E73 #73241E
square
#42731E #1E6C73 #4F1E73 #73241E
split-complementary
#42731E #241E73 #731E6C
monochromatic
#0E1806 #264211 #42731E #5EA42B #7BCD3F

Accessibility & contrast

On white

5.67
#42731E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#42731E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42731E
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42731E#FFFFFF#000000##FFFFFF
##42731E1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776910
Deuteranopia (green-blind)
#716526
Tritanopia (blue-blind)
#416E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #42731e;
/* rgb */ color: rgb(66, 115, 30);
/* oklch */ color: oklch(50.2% 0.127 134.8);
Tailwind
colors: {
  custom: {
    50: '#7b9c60',
    500: '#42731e',
    950: '#000000',
  },
}
SCSS
$custom: #42731e;
$custom-light: #7b9c60;
$custom-dark: #000000;
JSON
{
  "hex": "#42731e",
  "rgb": {
    "r": 66,
    "g": 115,
    "b": 30
  },
  "hsl": {
    "h": 94.588,
    "s": 58.621,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50242,
    "c": 0.12679,
    "h": 134.8
  },
  "luminance": 0.13513
}

Semantic roles & 50–950 ramp

primary
#42731E
secondary
#7E46A7
accent
#46E2A0
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42731E

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

Preview Lab → · Contrast checker → · Palette generator →

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