#42873F#42873F

#42873F is a mid, vivid green. Relative luminance 0.188; OKLCH L 56.1% C 0.127 H 142.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#42873F
RGBrgb(66, 135, 63)
HSLhsl(118, 36%, 39%)
HSVhsv(118, 53%, 53%)
CMYKcmyk(51.1%, 0%, 53.3%, 47.1%)
CIE-LABlab(50.50, -37.17, 31.90)
CIE-LCHlch(50.50, 48.98, 139.37°)
OKLaboklab(56.07% -0.1012 0.0766)
OKLCHoklch(56.07% 0.127 142.9)
XYZxyz(11.8074, 18.8442, 7.7168)
Luminance0.1885 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42873F #843F87
analogous
#66873F #42873F #3F8760
triadic
#42873F #3F4287 #873F42
tetradic
#42873F #3F6687 #843F87 #87603F
square
#42873F #3F6687 #843F87 #87603F
split-complementary
#42873F #603F87 #873F66
monochromatic
#193418 #2E5D2C #42873F #58AF54 #81C37E

Accessibility & contrast

On white

4.40
#42873F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#42873F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42873F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42873F#FFFFFF#000000##000000
##42873F1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7C39
Deuteranopia (green-blind)
#807644
Tritanopia (blue-blind)
#398377
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #42873f;
/* rgb */ color: rgb(66, 135, 63);
/* oklch */ color: oklch(56.1% 0.127 142.9);
Tailwind
colors: {
  custom: {
    50: '#7caa76',
    500: '#42873f',
    950: '#000000',
  },
}
SCSS
$custom: #42873f;
$custom-light: #7caa76;
$custom-dark: #000000;
JSON
{
  "hex": "#42873f",
  "rgb": {
    "r": 66,
    "g": 135,
    "b": 63
  },
  "hsl": {
    "h": 117.5,
    "s": 36.364,
    "l": 38.824
  },
  "oklch": {
    "l": 0.56071,
    "c": 0.12694,
    "h": 142.9
  },
  "luminance": 0.18845
}

Semantic roles & 50–950 ramp

primary
#42873F
secondary
#AB75AD
accent
#5BCCC8
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#0A1008
muted
#7C7F7B

Preview Lab

Preview with #42873F

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

Preview Lab → · Contrast checker → · Palette generator →

#42873F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva