#287F2D#287F2D

#287F2D is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.144 H 144.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#287F2D
RGBrgb(40, 127, 45)
HSLhsl(123, 52%, 33%)
HSVhsv(123, 69%, 50%)
CMYKcmyk(68.5%, 0%, 64.6%, 50.2%)
CIE-LABlab(46.74, -43.04, 36.24)
CIE-LCHlch(46.74, 56.27, 139.91°)
OKLaboklab(52.65% -0.1166 0.0847)
OKLCHoklch(52.65% 0.144 144)
XYZxyz(8.9375, 15.8184, 5.0644)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F2D #7F287A
analogous
#4F7F28 #287F2D #287F58
triadic
#287F2D #2D287F #7F2D28
tetradic
#287F2D #284F7F #7F287A #7F5828
square
#287F2D #284F7F #7F287A #7F5828
split-complementary
#287F2D #58287F #7F284F
monochromatic
#0B220C #19501D #287F2D #37AE3D #57CA5E

Accessibility & contrast

On white

5.04
#287F2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#287F2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F2D
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F2D#FFFFFF#000000##FFFFFF
##287F2D1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817324
Deuteranopia (green-blind)
#776C34
Tritanopia (blue-blind)
#117B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #287f2d;
/* rgb */ color: rgb(40, 127, 45);
/* oklch */ color: oklch(52.7% 0.144 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ea569',
    500: '#287f2d',
    950: '#000000',
  },
}
SCSS
$custom: #287f2d;
$custom-light: #6ea569;
$custom-dark: #000000;
JSON
{
  "hex": "#287f2d",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 123.448,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52652,
    "c": 0.14412,
    "h": 144
  },
  "luminance": 0.15819
}

Semantic roles & 50–950 ramp

primary
#287F2D
secondary
#AF54AA
accent
#4CD3DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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