#287D1C#287D1C

#287D1C is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.154 H 141.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#287D1C
RGBrgb(40, 125, 28)
HSLhsl(113, 63%, 30%)
HSVhsv(113, 78%, 49%)
CMYKcmyk(68%, 0%, 77.6%, 51%)
CIE-LABlab(45.91, -43.98, 42.61)
CIE-LCHlch(45.91, 61.24, 135.90°)
OKLaboklab(51.92% -0.1201 0.0959)
OKLCHoklch(51.92% 0.154 141.4)
XYZxyz(8.4178, 15.2013, 3.5889)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D1C #711C7D
analogous
#597D1C #287D1C #1C7D40
triadic
#287D1C #1C287D #7D1C28
tetradic
#287D1C #1C597D #711C7D #7D401C
square
#287D1C #1C597D #711C7D #7D401C
split-complementary
#287D1C #401C7D #7D1C59
monochromatic
#081906 #184B11 #287D1C #38AF27 #52D43F

Accessibility & contrast

On white

5.20
#287D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#287D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D1C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D1C#FFFFFF#000000##FFFFFF
##287D1C1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807107
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#17796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d1c;
/* rgb */ color: rgb(40, 125, 28);
/* oklch */ color: oklch(51.9% 0.154 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa360',
    500: '#287d1c',
    950: '#000000',
  },
}
SCSS
$custom: #287d1c;
$custom-light: #6fa360;
$custom-dark: #000000;
JSON
{
  "hex": "#287d1c",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 112.577,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.51922,
    "c": 0.15369,
    "h": 141.4
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#287D1C
secondary
#A344B1
accent
#41E6D2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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