#287142#287142

#287142 is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.0% C 0.104 H 152.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#287142
RGBrgb(40, 113, 66)
HSLhsl(141, 48%, 30%)
HSVhsv(141, 65%, 44%)
CMYKcmyk(64.6%, 0%, 41.6%, 55.7%)
CIE-LABlab(42.24, -34.08, 19.58)
CIE-LCHlch(42.24, 39.31, 150.12°)
OKLaboklab(49.04% -0.0922 0.0487)
OKLCHoklch(49.04% 0.104 152.1)
XYZxyz(7.7630, 12.6539, 7.1866)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287142 #712857
analogous
#337128 #287142 #287166
triadic
#287142 #422871 #714228
tetradic
#287142 #283371 #712857 #716628
square
#287142 #283371 #712857 #716628
split-complementary
#287142 #662871 #712833
monochromatic
#08170D #184428 #287142 #389E5C #52C27A

Accessibility & contrast

On white

5.95
#287142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#287142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287142
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287142#FFFFFF#000000##FFFFFF
##2871421.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71683F
Deuteranopia (green-blind)
#686145
Tritanopia (blue-blind)
#0E6F65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #287142;
/* rgb */ color: rgb(40, 113, 66);
/* oklch */ color: oklch(49.0% 0.104 152.1);
Tailwind
colors: {
  custom: {
    50: '#6a9a77',
    500: '#287142',
    950: '#000000',
  },
}
SCSS
$custom: #287142;
$custom-light: #6a9a77;
$custom-dark: #000000;
JSON
{
  "hex": "#287142",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 66
  },
  "hsl": {
    "h": 141.37,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.49036,
    "c": 0.10427,
    "h": 152.1
  },
  "luminance": 0.12655
}

Semantic roles & 50–950 ramp

primary
#287142
secondary
#A35286
accent
#50A7D7
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #287142

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

Preview Lab → · Contrast checker → · Palette generator →

#287142 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva