#42731C#42731C

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

Color values

HEX#42731C
RGBrgb(66, 115, 28)
HSLhsl(94, 61%, 28%)
HSVhsv(94, 76%, 45%)
CMYKcmyk(42.6%, 0%, 75.7%, 54.9%)
CIE-LABlab(43.51, -32.16, 40.55)
CIE-LCHlch(43.51, 51.76, 128.42°)
OKLaboklab(50.22% -0.0899 0.0913)
OKLCHoklch(50.22% 0.128 134.6)
XYZxyz(8.5869, 13.5031, 3.2523)
Luminance0.1350 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42731C #4D1C73
analogous
#6D731C #42731C #1C7321
triadic
#42731C #1C4273 #731C42
tetradic
#42731C #1C6D73 #4D1C73 #73211C
square
#42731C #1C6D73 #4D1C73 #73211C
split-complementary
#42731C #211C73 #731C6D
monochromatic
#0E1906 #264210 #42731C #5EA428 #7BCF3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #42731c;
/* rgb */ color: rgb(66, 115, 28);
/* oklch */ color: oklch(50.2% 0.128 134.6);
Tailwind
colors: {
  custom: {
    50: '#7b9b5e',
    500: '#42731c',
    950: '#000000',
  },
}
SCSS
$custom: #42731c;
$custom-light: #7b9b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#42731c",
  "rgb": {
    "r": 66,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 93.793,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50225,
    "c": 0.12816,
    "h": 134.6
  },
  "luminance": 0.13504
}

Semantic roles & 50–950 ramp

primary
#42731C
secondary
#7C43A7
accent
#44E49E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42731C

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

Preview Lab → · Contrast checker → · Palette generator →

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