#287D23#287D23

#287D23 is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.149 H 142.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#287D23
RGBrgb(40, 125, 35)
HSLhsl(117, 56%, 31%)
HSVhsv(117, 72%, 49%)
CMYKcmyk(68%, 0%, 72%, 51%)
CIE-LABlab(45.96, -43.37, 39.89)
CIE-LCHlch(45.96, 58.92, 137.40°)
OKLaboklab(51.98% -0.118 0.0912)
OKLCHoklch(51.98% 0.149 142.3)
XYZxyz(8.5116, 15.2388, 4.0826)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D23 #78237D
analogous
#557D23 #287D23 #237D4B
triadic
#287D23 #23287D #7D2328
tetradic
#287D23 #23557D #78237D #7D4B23
square
#287D23 #23557D #78237D #7D4B23
split-complementary
#287D23 #4B237D #7D2355
monochromatic
#091D08 #194D16 #287D23 #37AD30 #54CD4D

Accessibility & contrast

On white

5.19
#287D23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287D23
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D23#FFFFFF#000000##FFFFFF
##287D231.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807115
Deuteranopia (green-blind)
#766A2C
Tritanopia (blue-blind)
#16796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d23;
/* rgb */ color: rgb(40, 125, 35);
/* oklch */ color: oklch(52.0% 0.149 142.3);
Tailwind
colors: {
  custom: {
    50: '#6ea363',
    500: '#287d23',
    950: '#000000',
  },
}
SCSS
$custom: #287d23;
$custom-light: #6ea363;
$custom-dark: #000000;
JSON
{
  "hex": "#287d23",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 116.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5198,
    "c": 0.14917,
    "h": 142.3
  },
  "luminance": 0.1524
}

Semantic roles & 50–950 ramp

primary
#287D23
secondary
#AA4CAF
accent
#48E0D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287D23

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

Preview Lab → · Contrast checker → · Palette generator →

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