#42731B#42731B

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

Color values

HEX#42731B
RGBrgb(66, 115, 27)
HSLhsl(93, 62%, 28%)
HSVhsv(93, 77%, 45%)
CMYKcmyk(42.6%, 0%, 76.5%, 54.9%)
CIE-LABlab(43.50, -32.23, 40.94)
CIE-LCHlch(43.50, 52.10, 128.22°)
OKLaboklab(50.22% -0.0902 0.0919)
OKLCHoklch(50.22% 0.129 134.5)
XYZxyz(8.5752, 13.4984, 3.1903)
Luminance0.1350 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42731B #4C1B73
analogous
#6E731B #42731B #1B7320
triadic
#42731B #1B4273 #731B42
tetradic
#42731B #1B6E73 #4C1B73 #73201B
square
#42731B #1B6E73 #4C1B73 #73201B
split-complementary
#42731B #201B73 #731B6E
monochromatic
#0E1906 #26410F #42731B #5EA527 #7CD038

Accessibility & contrast

On white

5.68
#42731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #42731B
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42731B#FFFFFF#000000##FFFFFF
##42731B1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#78690A
Deuteranopia (green-blind)
#716524
Tritanopia (blue-blind)
#416E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #42731b;
/* rgb */ color: rgb(66, 115, 27);
/* oklch */ color: oklch(50.2% 0.129 134.5);
Tailwind
colors: {
  custom: {
    50: '#7b9b5e',
    500: '#42731b',
    950: '#000000',
  },
}
SCSS
$custom: #42731b;
$custom-light: #7b9b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#42731b",
  "rgb": {
    "r": 66,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 93.409,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50217,
    "c": 0.12881,
    "h": 134.5
  },
  "luminance": 0.13499
}

Semantic roles & 50–950 ramp

primary
#42731B
secondary
#7B42A8
accent
#43E59D
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42731B

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

Preview Lab → · Contrast checker → · Palette generator →

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