#42731D#42731D

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

Color values

HEX#42731D
RGBrgb(66, 115, 29)
HSLhsl(94, 60%, 28%)
HSVhsv(94, 75%, 45%)
CMYKcmyk(42.6%, 0%, 74.8%, 54.9%)
CIE-LABlab(43.52, -32.09, 40.16)
CIE-LCHlch(43.52, 51.40, 128.62°)
OKLaboklab(50.23% -0.0897 0.0906)
OKLCHoklch(50.23% 0.127 134.7)
XYZxyz(8.5991, 13.5080, 3.3164)
Luminance0.1351 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42731D #4E1D73
analogous
#6D731D #42731D #1D7323
triadic
#42731D #1D4273 #731D42
tetradic
#42731D #1D6D73 #4E1D73 #73231D
square
#42731D #1D6D73 #4E1D73 #73231D
split-complementary
#42731D #231D73 #731D6D
monochromatic
#0E1806 #264211 #42731D #5EA429 #7BCE3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42731D#FFFFFF#000000##FFFFFF
##42731D1.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)
#78690E
Deuteranopia (green-blind)
#716525
Tritanopia (blue-blind)
#416E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #42731d;
/* rgb */ color: rgb(66, 115, 29);
/* oklch */ color: oklch(50.2% 0.127 134.7);
Tailwind
colors: {
  custom: {
    50: '#7b9b5f',
    500: '#42731d',
    950: '#000000',
  },
}
SCSS
$custom: #42731d;
$custom-light: #7b9b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#42731d",
  "rgb": {
    "r": 66,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 94.186,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50233,
    "c": 0.12749,
    "h": 134.7
  },
  "luminance": 0.13508
}

Semantic roles & 50–950 ramp

primary
#42731D
secondary
#7D45A7
accent
#45E39F
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42731D

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

Preview Lab → · Contrast checker → · Palette generator →

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