#287E2D#287E2D

#287E2D is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.143 H 144.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#287E2D
RGBrgb(40, 126, 45)
HSLhsl(123, 52%, 33%)
HSVhsv(123, 68%, 49%)
CMYKcmyk(68.3%, 0%, 64.3%, 50.6%)
CIE-LABlab(46.39, -42.67, 35.85)
CIE-LCHlch(46.39, 55.73, 139.96°)
OKLaboklab(52.37% -0.1156 0.0838)
OKLCHoklch(52.37% 0.143 144.1)
XYZxyz(8.8090, 15.5614, 5.0215)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E2D #7E2879
analogous
#4E7E28 #287E2D #287E58
triadic
#287E2D #2D287E #7E2D28
tetradic
#287E2D #284E7E #7E2879 #7E5828
square
#287E2D #284E7E #7E2879 #7E5828
split-complementary
#287E2D #58287E #7E284E
monochromatic
#0B210C #19501C #287E2D #37AC3E #57CA5D

Accessibility & contrast

On white

5.11
#287E2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287E2D
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E2D#FFFFFF#000000##FFFFFF
##287E2D1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807224
Deuteranopia (green-blind)
#766B34
Tritanopia (blue-blind)
#127B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e2d;
/* rgb */ color: rgb(40, 126, 45);
/* oklch */ color: oklch(52.4% 0.143 144.1);
Tailwind
colors: {
  custom: {
    50: '#6ea469',
    500: '#287e2d',
    950: '#000000',
  },
}
SCSS
$custom: #287e2d;
$custom-light: #6ea469;
$custom-dark: #000000;
JSON
{
  "hex": "#287e2d",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 123.488,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52369,
    "c": 0.1428,
    "h": 144.1
  },
  "luminance": 0.15562
}

Semantic roles & 50–950 ramp

primary
#287E2D
secondary
#AF53A9
accent
#4DD3DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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