#287D26#287D26

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

Color values

HEX#287D26
RGBrgb(40, 125, 38)
HSLhsl(119, 53%, 32%)
HSVhsv(119, 70%, 49%)
CMYKcmyk(68%, 0%, 69.6%, 51%)
CIE-LABlab(45.98, -43.07, 38.62)
CIE-LCHlch(45.98, 57.85, 138.12°)
OKLaboklab(52.01% -0.1171 0.0889)
OKLCHoklch(52.01% 0.147 142.8)
XYZxyz(8.5580, 15.2574, 4.3273)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D26 #7B267D
analogous
#547D26 #287D26 #267D50
triadic
#287D26 #26287D #7D2628
tetradic
#287D26 #26547D #7B267D #7D5026
square
#287D26 #26547D #7B267D #7D5026
split-complementary
#287D26 #50267D #7D2654
monochromatic
#0A1F09 #194E18 #287D26 #37AC34 #56CB53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287D26#FFFFFF#000000##FFFFFF
##287D261.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)
#80711A
Deuteranopia (green-blind)
#766A2E
Tritanopia (blue-blind)
#15796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d26;
/* rgb */ color: rgb(40, 125, 38);
/* oklch */ color: oklch(52.0% 0.147 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ea365',
    500: '#287d26',
    950: '#000000',
  },
}
SCSS
$custom: #287d26;
$custom-light: #6ea365;
$custom-dark: #000000;
JSON
{
  "hex": "#287d26",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 118.621,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52009,
    "c": 0.147,
    "h": 142.8
  },
  "luminance": 0.15258
}

Semantic roles & 50–950 ramp

primary
#287D26
secondary
#AD50AF
accent
#4BDDD9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287D26

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

Preview Lab → · Contrast checker → · Palette generator →

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