#42731A#42731A

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

Color values

HEX#42731A
RGBrgb(66, 115, 26)
HSLhsl(93, 63%, 28%)
HSVhsv(93, 77%, 45%)
CMYKcmyk(42.6%, 0%, 77.4%, 54.9%)
CIE-LABlab(43.50, -32.30, 41.31)
CIE-LCHlch(43.50, 52.44, 128.02°)
OKLaboklab(50.21% -0.0905 0.0926)
OKLCHoklch(50.21% 0.129 134.4)
XYZxyz(8.5638, 13.4939, 3.1304)
Luminance0.1349 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42731A #4B1A73
analogous
#6E731A #42731A #1A731F
triadic
#42731A #1A4273 #731A42
tetradic
#42731A #1A6E73 #4B1A73 #731F1A
square
#42731A #1A6E73 #4B1A73 #731F1A
split-complementary
#42731A #1F1A73 #731A6E
monochromatic
#0E1906 #25410F #42731A #5FA525 #7CD236

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42731A#FFFFFF#000000##FFFFFF
##42731A1.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)
#786908
Deuteranopia (green-blind)
#716523
Tritanopia (blue-blind)
#416E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #42731a;
/* rgb */ color: rgb(66, 115, 26);
/* oklch */ color: oklch(50.2% 0.129 134.4);
Tailwind
colors: {
  custom: {
    50: '#7b9b5d',
    500: '#42731a',
    950: '#000000',
  },
}
SCSS
$custom: #42731a;
$custom-light: #7b9b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#42731a",
  "rgb": {
    "r": 66,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 93.034,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.5021,
    "c": 0.12944,
    "h": 134.4
  },
  "luminance": 0.13494
}

Semantic roles & 50–950 ramp

primary
#42731A
secondary
#7A41A8
accent
#42E69C
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42731A

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

Preview Lab → · Contrast checker → · Palette generator →

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