#42872D#42872D

#42872D is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.8% C 0.143 H 139.2°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#42872D
RGBrgb(66, 135, 45)
HSLhsl(106, 50%, 35%)
HSVhsv(106, 67%, 53%)
CMYKcmyk(51.1%, 0%, 66.7%, 47.1%)
CIE-LABlab(50.30, -39.33, 40.45)
CIE-LCHlch(50.30, 56.42, 134.20°)
OKLaboklab(55.84% -0.1081 0.0934)
OKLCHoklch(55.84% 0.143 139.2)
XYZxyz(11.3840, 18.6748, 5.4868)
Luminance0.1868 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42872D #722D87
analogous
#6F872D #42872D #2D8745
triadic
#42872D #2D4287 #872D42
tetradic
#42872D #2D6F87 #722D87 #87452D
square
#42872D #2D6F87 #722D87 #87452D
split-complementary
#42872D #452D87 #872D6F
monochromatic
#152B0E #2C591E #42872D #58B53C #7CCB63

Accessibility & contrast

On white

4.43
#42872D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#42872D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42872D
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42872D#FFFFFF#000000##000000
##42872D1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B22
Deuteranopia (green-blind)
#827535
Tritanopia (blue-blind)
#3C8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #42872d;
/* rgb */ color: rgb(66, 135, 45);
/* oklch */ color: oklch(55.8% 0.143 139.2);
Tailwind
colors: {
  custom: {
    50: '#7daa6a',
    500: '#42872d',
    950: '#000000',
  },
}
SCSS
$custom: #42872d;
$custom-light: #7daa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#42872d",
  "rgb": {
    "r": 66,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 106,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55842,
    "c": 0.14288,
    "h": 139.2
  },
  "luminance": 0.18676
}

Semantic roles & 50–950 ramp

primary
#42872D
secondary
#9E5EB2
accent
#4EDAB9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #42872D

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

Preview Lab → · Contrast checker → · Palette generator →

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