#287F2C#287F2C

#287F2C is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.145 H 143.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#287F2C
RGBrgb(40, 127, 44)
HSLhsl(123, 52%, 33%)
HSVhsv(123, 69%, 50%)
CMYKcmyk(68.5%, 0%, 65.4%, 50.2%)
CIE-LABlab(46.73, -43.16, 36.70)
CIE-LCHlch(46.73, 56.65, 139.63°)
OKLaboklab(52.64% -0.117 0.0855)
OKLCHoklch(52.64% 0.145 143.8)
XYZxyz(8.9185, 15.8108, 4.9642)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F2C #7F287B
analogous
#4F7F28 #287F2C #287F58
triadic
#287F2C #2C287F #7F2C28
tetradic
#287F2C #284F7F #7F287B #7F5828
square
#287F2C #284F7F #7F287B #7F5828
split-complementary
#287F2C #58287F #7F284F
monochromatic
#0B220C #19501C #287F2C #37AE3C #57CA5D

Accessibility & contrast

On white

5.05
#287F2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#287F2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F2C
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F2C#FFFFFF#000000##FFFFFF
##287F2C1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827322
Deuteranopia (green-blind)
#776C33
Tritanopia (blue-blind)
#127B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #287f2c;
/* rgb */ color: rgb(40, 127, 44);
/* oklch */ color: oklch(52.6% 0.145 143.8);
Tailwind
colors: {
  custom: {
    50: '#6ea569',
    500: '#287f2c',
    950: '#000000',
  },
}
SCSS
$custom: #287f2c;
$custom-light: #6ea569;
$custom-dark: #000000;
JSON
{
  "hex": "#287f2c",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 122.759,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5264,
    "c": 0.14493,
    "h": 143.8
  },
  "luminance": 0.15812
}

Semantic roles & 50–950 ramp

primary
#287F2C
secondary
#AF54AB
accent
#4CD5DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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