#287E12#287E12

#287E12 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.160 H 140.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#287E12
RGBrgb(40, 126, 18)
HSLhsl(108, 75%, 28%)
HSVhsv(108, 86%, 49%)
CMYKcmyk(68.3%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.20, -44.99, 46.15)
CIE-LCHlch(46.20, 64.45, 134.27°)
OKLaboklab(52.15% -0.1233 0.1018)
OKLCHoklch(52.15% 0.16 140.4)
XYZxyz(8.4447, 15.4156, 3.1026)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E12 #68127E
analogous
#5E7E12 #287E12 #127E32
triadic
#287E12 #12287E #7E1228
tetradic
#287E12 #125E7E #68127E #7E3212
square
#287E12 #125E7E #68127E #7E3212
split-complementary
#287E12 #32127E #7E125E
monochromatic
#081B04 #17480A #287E12 #39B41A #4FE12A

Accessibility & contrast

On white

5.14
#287E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#287E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E12
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E12#FFFFFF#000000##FFFFFF
##287E121.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776B20
Tritanopia (blue-blind)
#197A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287e12;
/* rgb */ color: rgb(40, 126, 18);
/* oklch */ color: oklch(52.1% 0.160 140.4);
Tailwind
colors: {
  custom: {
    50: '#6fa45b',
    500: '#287e12',
    950: '#000000',
  },
}
SCSS
$custom: #287e12;
$custom-light: #6fa45b;
$custom-dark: #000000;
JSON
{
  "hex": "#287e12",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 107.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52145,
    "c": 0.15993,
    "h": 140.4
  },
  "luminance": 0.15416
}

Semantic roles & 50–950 ramp

primary
#287E12
secondary
#9B38B4
accent
#36F2CB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #287E12

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

Preview Lab → · Contrast checker → · Palette generator →

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