#287E28#287E28

#287E28 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.147 H 143.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#287E28
RGBrgb(40, 126, 40)
HSLhsl(120, 52%, 33%)
HSVhsv(120, 68%, 49%)
CMYKcmyk(68.3%, 0%, 68.3%, 50.6%)
CIE-LABlab(46.35, -43.23, 38.12)
CIE-LCHlch(46.35, 57.64, 138.60°)
OKLaboklab(52.31% -0.1174 0.0881)
OKLCHoklch(52.31% 0.147 143.1)
XYZxyz(8.7184, 15.5251, 4.5443)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E28 #7E287E
analogous
#537E28 #287E28 #287E53
triadic
#287E28 #28287E #7E2828
tetradic
#287E28 #28537E #7E287E #7E5328
square
#287E28 #28537E #7E287E #7E5328
split-complementary
#287E28 #53287E #7E2853
monochromatic
#0B210B #195019 #287E28 #37AC37 #57CA57

Accessibility & contrast

On white

5.12
#287E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#287E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E28
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E28#FFFFFF#000000##FFFFFF
##287E281.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721D
Deuteranopia (green-blind)
#766B30
Tritanopia (blue-blind)
#147A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e28;
/* rgb */ color: rgb(40, 126, 40);
/* oklch */ color: oklch(52.3% 0.147 143.1);
Tailwind
colors: {
  custom: {
    50: '#6ea466',
    500: '#287e28',
    950: '#000000',
  },
}
SCSS
$custom: #287e28;
$custom-light: #6ea466;
$custom-dark: #000000;
JSON
{
  "hex": "#287e28",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 120,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52313,
    "c": 0.14678,
    "h": 143.1
  },
  "luminance": 0.15526
}

Semantic roles & 50–950 ramp

primary
#287E28
secondary
#AF53AF
accent
#4DDBDB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287E28

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

Preview Lab → · Contrast checker → · Palette generator →

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