#287A2D#287A2D

#287A2D is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.138 H 144.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#287A2D
RGBrgb(40, 122, 45)
HSLhsl(124, 51%, 32%)
HSVhsv(124, 67%, 48%)
CMYKcmyk(67.2%, 0%, 63.1%, 52.2%)
CIE-LABlab(45.02, -41.14, 34.30)
CIE-LCHlch(45.02, 53.56, 140.18°)
OKLaboklab(51.24% -0.1115 0.0805)
OKLCHoklch(51.24% 0.138 144.2)
XYZxyz(8.3078, 14.5588, 4.8544)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A2D #7A2875
analogous
#4C7A28 #287A2D #287A56
triadic
#287A2D #2D287A #7A2D28
tetradic
#287A2D #284C7A #7A2875 #7A5628
square
#287A2D #284C7A #7A2875 #7A5628
split-complementary
#287A2D #56287A #7A284C
monochromatic
#0A1E0B #194C1C #287A2D #37A83E #55C75C

Accessibility & contrast

On white

5.37
#287A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#287A2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A2D
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A2D#FFFFFF#000000##FFFFFF
##287A2D1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F25
Deuteranopia (green-blind)
#726833
Tritanopia (blue-blind)
#147769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287a2d;
/* rgb */ color: rgb(40, 122, 45);
/* oklch */ color: oklch(51.2% 0.138 144.2);
Tailwind
colors: {
  custom: {
    50: '#6da169',
    500: '#287a2d',
    950: '#000000',
  },
}
SCSS
$custom: #287a2d;
$custom-light: #6da169;
$custom-dark: #000000;
JSON
{
  "hex": "#287a2d",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 123.659,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51236,
    "c": 0.1375,
    "h": 144.2
  },
  "luminance": 0.1456
}

Semantic roles & 50–950 ramp

primary
#287A2D
secondary
#AC52A6
accent
#4ED2DA
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #287A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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