#287F4E#287F4E

#287F4E is a mid, moderate green. Relative luminance 0.162; OKLCH L 53.2% C 0.113 H 154.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#287F4E
RGBrgb(40, 127, 78)
HSLhsl(146, 52%, 33%)
HSVhsv(146, 69%, 50%)
CMYKcmyk(68.5%, 0%, 38.6%, 50.2%)
CIE-LABlab(47.21, -37.68, 19.32)
CIE-LCHlch(47.21, 42.35, 152.86°)
OKLaboklab(53.2% -0.102 0.0483)
OKLCHoklch(53.2% 0.113 154.6)
XYZxyz(9.8387, 16.1789, 9.8106)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F4E #7F2859
analogous
#2D7F28 #287F4E #287F79
triadic
#287F4E #4E287F #7F4E28
tetradic
#287F4E #282D7F #7F2859 #7F7928
square
#287F4E #282D7F #7F2859 #7F7928
split-complementary
#287F4E #79287F #7F282D
monochromatic
#0B2215 #195031 #287F4E #37AE6B #57CA89

Accessibility & contrast

On white

4.96
#287F4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#287F4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F4E
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F4E#FFFFFF#000000##FFFFFF
##287F4E1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F754B
Deuteranopia (green-blind)
#746D51
Tritanopia (blue-blind)
#007E73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #287f4e;
/* rgb */ color: rgb(40, 127, 78);
/* oklch */ color: oklch(53.2% 0.113 154.6);
Tailwind
colors: {
  custom: {
    50: '#6da580',
    500: '#287f4e',
    950: '#000000',
  },
}
SCSS
$custom: #287f4e;
$custom-light: #6da580;
$custom-dark: #000000;
JSON
{
  "hex": "#287f4e",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 78
  },
  "hsl": {
    "h": 146.207,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53196,
    "c": 0.11284,
    "h": 154.6
  },
  "luminance": 0.1618
}

Semantic roles & 50–950 ramp

primary
#287F4E
secondary
#AF5487
accent
#4C9DDC
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #287F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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