#287512#287512

#287512 is a mid, vivid green. Relative luminance 0.132; OKLCH L 49.6% C 0.149 H 140.1°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#287512
RGBrgb(40, 117, 18)
HSLhsl(107, 73%, 26%)
HSVhsv(107, 85%, 46%)
CMYKcmyk(65.8%, 0%, 84.6%, 54.1%)
CIE-LABlab(43.09, -41.72, 43.30)
CIE-LCHlch(43.09, 60.12, 133.94°)
OKLaboklab(49.57% -0.1145 0.0959)
OKLCHoklch(49.57% 0.149 140.1)
XYZxyz(7.3452, 13.2167, 2.7361)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287512 #5F1275
analogous
#5A7512 #287512 #12752E
triadic
#287512 #122875 #751228
tetradic
#287512 #125A75 #5F1275 #752E12
square
#287512 #125A75 #5F1275 #752E12
split-complementary
#287512 #2E1275 #75125A
monochromatic
#091B04 #16400A #287512 #3AAA1A #4DDD24

Accessibility & contrast

On white

5.76
#287512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#287512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287512
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287512#FFFFFF#000000##FFFFFF
##2875121.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A00
Deuteranopia (green-blind)
#6F631E
Tritanopia (blue-blind)
#1C7163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #287512;
/* rgb */ color: rgb(40, 117, 18);
/* oklch */ color: oklch(49.6% 0.149 140.1);
Tailwind
colors: {
  custom: {
    50: '#6d9e5a',
    500: '#287512',
    950: '#000000',
  },
}
SCSS
$custom: #287512;
$custom-light: #6d9e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#287512",
  "rgb": {
    "r": 40,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 106.667,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49567,
    "c": 0.14934,
    "h": 140.1
  },
  "luminance": 0.13217
}

Semantic roles & 50–950 ramp

primary
#287512
secondary
#9237AC
accent
#38F0C7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #287512

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

Preview Lab → · Contrast checker → · Palette generator →

#287512 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva