#287E2F#287E2F

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

Color values

HEX#287E2F
RGBrgb(40, 126, 47)
HSLhsl(125, 52%, 33%)
HSVhsv(125, 68%, 49%)
CMYKcmyk(68.3%, 0%, 62.7%, 50.6%)
CIE-LABlab(46.41, -42.42, 34.91)
CIE-LCHlch(46.41, 54.94, 140.54°)
OKLaboklab(52.39% -0.1148 0.082)
OKLCHoklch(52.39% 0.141 144.5)
XYZxyz(8.8485, 15.5771, 5.2291)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E2F #7E2877
analogous
#4C7E28 #287E2F #287E5A
triadic
#287E2F #2F287E #7E2F28
tetradic
#287E2F #284C7E #7E2877 #7E5A28
square
#287E2F #284C7E #7E2877 #7E5A28
split-complementary
#287E2F #5A287E #7E284C
monochromatic
#0B210C #19501E #287E2F #37AC40 #57CA60

Accessibility & contrast

On white

5.10
#287E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#287E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E2F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E2F#FFFFFF#000000##FFFFFF
##287E2F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807226
Deuteranopia (green-blind)
#766B36
Tritanopia (blue-blind)
#117B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e2f;
/* rgb */ color: rgb(40, 126, 47);
/* oklch */ color: oklch(52.4% 0.141 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ea46a',
    500: '#287e2f',
    950: '#000000',
  },
}
SCSS
$custom: #287e2f;
$custom-light: #6ea46a;
$custom-dark: #000000;
JSON
{
  "hex": "#287e2f",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 124.884,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52393,
    "c": 0.14113,
    "h": 144.5
  },
  "luminance": 0.15578
}

Semantic roles & 50–950 ramp

primary
#287E2F
secondary
#AF53A7
accent
#4DD0DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #287E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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