#287817#287817

#287817 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.5% C 0.150 H 140.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#287817
RGBrgb(40, 120, 23)
HSLhsl(109, 68%, 28%)
HSVhsv(109, 81%, 47%)
CMYKcmyk(66.7%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.15, -42.51, 42.68)
CIE-LCHlch(44.15, 60.24, 134.88°)
OKLaboklab(50.46% -0.1164 0.0953)
OKLCHoklch(50.46% 0.15 140.7)
XYZxyz(7.7458, 13.9452, 3.0939)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287817 #671778
analogous
#587817 #287817 #177837
triadic
#287817 #172878 #781728
tetradic
#287817 #175878 #671778 #783717
square
#287817 #175878 #671778 #783717
split-complementary
#287817 #371778 #781758
monochromatic
#091A05 #17450D #287817 #39AB21 #4FD832

Accessibility & contrast

On white

5.54
#287817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#287817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287817
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287817#FFFFFF#000000##FFFFFF
##2878171.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#1B7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #287817;
/* rgb */ color: rgb(40, 120, 23);
/* oklch */ color: oklch(50.5% 0.150 140.7);
Tailwind
colors: {
  custom: {
    50: '#6ea05c',
    500: '#287817',
    950: '#000000',
  },
}
SCSS
$custom: #287817;
$custom-light: #6ea05c;
$custom-dark: #000000;
JSON
{
  "hex": "#287817",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 109.485,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50459,
    "c": 0.15045,
    "h": 140.7
  },
  "luminance": 0.13946
}

Semantic roles & 50–950 ramp

primary
#287817
secondary
#9A3EAD
accent
#3DEBCC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #287817

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

Preview Lab → · Contrast checker → · Palette generator →

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