#287C42#287C42

#287C42 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.121 H 150.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#287C42
RGBrgb(40, 124, 66)
HSLhsl(139, 51%, 32%)
HSVhsv(139, 68%, 49%)
CMYKcmyk(67.7%, 0%, 46.8%, 51.4%)
CIE-LABlab(45.99, -38.74, 24.45)
CIE-LCHlch(45.99, 45.81, 147.74°)
OKLaboklab(52.12% -0.1045 0.06)
OKLCHoklch(52.12% 0.121 150.1)
XYZxyz(9.0654, 15.2588, 7.6207)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287C42 #7C2862
analogous
#387C28 #287C42 #287C6C
triadic
#287C42 #42287C #7C4228
tetradic
#287C42 #28387C #7C2862 #7C6C28
square
#287C42 #28387C #7C2862 #7C6C28
split-complementary
#287C42 #6C287C #7C2838
monochromatic
#0A1F11 #194E29 #287C42 #37AA5B #56C879

Accessibility & contrast

On white

5.18
#287C42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#287C42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287C42
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287C42#FFFFFF#000000##FFFFFF
##287C421.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D713E
Deuteranopia (green-blind)
#726A46
Tritanopia (blue-blind)
#057A6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287c42;
/* rgb */ color: rgb(40, 124, 66);
/* oklch */ color: oklch(52.1% 0.121 150.1);
Tailwind
colors: {
  custom: {
    50: '#6da377',
    500: '#287c42',
    950: '#000000',
  },
}
SCSS
$custom: #287c42;
$custom-light: #6da377;
$custom-dark: #000000;
JSON
{
  "hex": "#287c42",
  "rgb": {
    "r": 40,
    "g": 124,
    "b": 66
  },
  "hsl": {
    "h": 138.571,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52122,
    "c": 0.12051,
    "h": 150.1
  },
  "luminance": 0.1526
}

Semantic roles & 50–950 ramp

primary
#287C42
secondary
#AD5291
accent
#4DAFDB
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #287C42

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

Preview Lab → · Contrast checker → · Palette generator →

#287C42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva