#287A2E#287A2E

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

Color values

HEX#287A2E
RGBrgb(40, 122, 46)
HSLhsl(124, 51%, 32%)
HSVhsv(124, 67%, 48%)
CMYKcmyk(67.2%, 0%, 62.3%, 52.2%)
CIE-LABlab(45.03, -41.01, 33.82)
CIE-LCHlch(45.03, 53.16, 140.49°)
OKLaboklab(51.25% -0.1111 0.0796)
OKLCHoklch(51.25% 0.137 144.4)
XYZxyz(8.3272, 14.5666, 4.9570)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A2E #7A2874
analogous
#4B7A28 #287A2E #287A57
triadic
#287A2E #2E287A #7A2E28
tetradic
#287A2E #284B7A #7A2874 #7A5728
square
#287A2E #284B7A #7A2874 #7A5728
split-complementary
#287A2E #57287A #7A284B
monochromatic
#0A1E0B #194C1D #287A2E #37A83F #55C75D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287A2E#FFFFFF#000000##FFFFFF
##287A2E1.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)
#7C6F26
Deuteranopia (green-blind)
#726834
Tritanopia (blue-blind)
#14776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287a2e;
/* rgb */ color: rgb(40, 122, 46);
/* oklch */ color: oklch(51.2% 0.137 144.4);
Tailwind
colors: {
  custom: {
    50: '#6da169',
    500: '#287a2e',
    950: '#000000',
  },
}
SCSS
$custom: #287a2e;
$custom-light: #6da169;
$custom-dark: #000000;
JSON
{
  "hex": "#287a2e",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 124.39,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51249,
    "c": 0.13664,
    "h": 144.4
  },
  "luminance": 0.14567
}

Semantic roles & 50–950 ramp

primary
#287A2E
secondary
#AC52A5
accent
#4ED0DA
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #287A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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