#287C2E#287C2E

#287C2E is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.139 H 144.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#287C2E
RGBrgb(40, 124, 46)
HSLhsl(124, 51%, 32%)
HSVhsv(124, 68%, 49%)
CMYKcmyk(67.7%, 0%, 62.9%, 51.4%)
CIE-LABlab(45.72, -41.78, 34.61)
CIE-LCHlch(45.72, 54.25, 140.37°)
OKLaboklab(51.82% -0.1132 0.0813)
OKLCHoklch(51.82% 0.139 144.3)
XYZxyz(8.5753, 15.0628, 5.0397)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287C2E #7C2876
analogous
#4C7C28 #287C2E #287C58
triadic
#287C2E #2E287C #7C2E28
tetradic
#287C2E #284C7C #7C2876 #7C5828
square
#287C2E #284C7C #7C2876 #7C5828
split-complementary
#287C2E #58287C #7C284C
monochromatic
#0A1F0C #194E1D #287C2E #37AA3F #56C85E

Accessibility & contrast

On white

5.23
#287C2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#287C2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287C2E
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287C2E#FFFFFF#000000##FFFFFF
##287C2E1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7126
Deuteranopia (green-blind)
#746A34
Tritanopia (blue-blind)
#13796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #287c2e;
/* rgb */ color: rgb(40, 124, 46);
/* oklch */ color: oklch(51.8% 0.139 144.3);
Tailwind
colors: {
  custom: {
    50: '#6da36a',
    500: '#287c2e',
    950: '#000000',
  },
}
SCSS
$custom: #287c2e;
$custom-light: #6da36a;
$custom-dark: #000000;
JSON
{
  "hex": "#287c2e",
  "rgb": {
    "r": 40,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 124.286,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51815,
    "c": 0.13932,
    "h": 144.3
  },
  "luminance": 0.15064
}

Semantic roles & 50–950 ramp

primary
#287C2E
secondary
#AD52A7
accent
#4DD1DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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