#287D52#287D52

#287D52 is a mid, moderate green. Relative luminance 0.157; OKLCH L 52.7% C 0.106 H 157.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#287D52
RGBrgb(40, 125, 82)
HSLhsl(150, 52%, 32%)
HSVhsv(150, 68%, 49%)
CMYKcmyk(68%, 0%, 34.4%, 51%)
CIE-LABlab(46.61, -35.98, 16.23)
CIE-LCHlch(46.61, 39.47, 155.72°)
OKLaboklab(52.73% -0.0977 0.041)
OKLCHoklch(52.73% 0.106 157.3)
XYZxyz(9.7308, 15.7265, 10.5037)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D52 #7D2853
analogous
#297D28 #287D52 #287D7D
triadic
#287D52 #52287D #7D5228
tetradic
#287D52 #28297D #7D2853 #7D7D28
square
#287D52 #28297D #7D2853 #7D7D28
split-complementary
#287D52 #7D287D #7D2829
monochromatic
#0A2015 #194F34 #287D52 #37AB70 #56C98F

Accessibility & contrast

On white

5.07
#287D52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#287D52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D52
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D52#FFFFFF#000000##FFFFFF
##287D521.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C734F
Deuteranopia (green-blind)
#716B55
Tritanopia (blue-blind)
#007C72
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287d52;
/* rgb */ color: rgb(40, 125, 82);
/* oklch */ color: oklch(52.7% 0.106 157.3);
Tailwind
colors: {
  custom: {
    50: '#6da383',
    500: '#287d52',
    950: '#000000',
  },
}
SCSS
$custom: #287d52;
$custom-light: #6da383;
$custom-dark: #000000;
JSON
{
  "hex": "#287d52",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 82
  },
  "hsl": {
    "h": 149.647,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52733,
    "c": 0.10598,
    "h": 157.3
  },
  "luminance": 0.15728
}

Semantic roles & 50–950 ramp

primary
#287D52
secondary
#AE5381
accent
#4D95DB
background
#F6FAF8
surface
#ECF4EF
border
#C7CECA
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #287D52

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

Preview Lab → · Contrast checker → · Palette generator →

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