#287C2C#287C2C

#287C2C is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.141 H 143.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#287C2C
RGBrgb(40, 124, 44)
HSLhsl(123, 51%, 32%)
HSVhsv(123, 68%, 49%)
CMYKcmyk(67.7%, 0%, 64.5%, 51.4%)
CIE-LABlab(45.70, -42.03, 35.55)
CIE-LCHlch(45.70, 55.04, 139.78°)
OKLaboklab(51.79% -0.1139 0.0831)
OKLCHoklch(51.79% 0.141 143.9)
XYZxyz(8.5368, 15.0474, 4.8369)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287C2C #7C2878
analogous
#4E7C28 #287C2C #287C56
triadic
#287C2C #2C287C #7C2C28
tetradic
#287C2C #284E7C #7C2878 #7C5628
square
#287C2C #284E7C #7C2878 #7C5628
split-complementary
#287C2C #56287C #7C284E
monochromatic
#0A1F0B #194E1C #287C2C #37AA3C #56C85B

Accessibility & contrast

On white

5.24
#287C2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#287C2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287C2C
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287C2C#FFFFFF#000000##FFFFFF
##287C2C1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7023
Deuteranopia (green-blind)
#746933
Tritanopia (blue-blind)
#13796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #287c2c;
/* rgb */ color: rgb(40, 124, 44);
/* oklch */ color: oklch(51.8% 0.141 143.9);
Tailwind
colors: {
  custom: {
    50: '#6ea368',
    500: '#287c2c',
    950: '#000000',
  },
}
SCSS
$custom: #287c2c;
$custom-light: #6ea368;
$custom-dark: #000000;
JSON
{
  "hex": "#287c2c",
  "rgb": {
    "r": 40,
    "g": 124,
    "b": 44
  },
  "hsl": {
    "h": 122.857,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51791,
    "c": 0.141,
    "h": 143.9
  },
  "luminance": 0.15048
}

Semantic roles & 50–950 ramp

primary
#287C2C
secondary
#AD52A9
accent
#4DD4DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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