#287C38#287C38

#287C38 is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.130 H 146.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#287C38
RGBrgb(40, 124, 56)
HSLhsl(131, 51%, 32%)
HSVhsv(131, 68%, 49%)
CMYKcmyk(67.7%, 0%, 54.8%, 51.4%)
CIE-LABlab(45.84, -40.39, 29.67)
CIE-LCHlch(45.84, 50.12, 143.70°)
OKLaboklab(51.95% -0.109 0.0713)
OKLCHoklch(51.95% 0.13 146.8)
XYZxyz(8.7959, 15.1510, 6.2015)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287C38 #7C286C
analogous
#427C28 #287C38 #287C62
triadic
#287C38 #38287C #7C3828
tetradic
#287C38 #28427C #7C286C #7C6228
square
#287C38 #28427C #7C286C #7C6228
split-complementary
#287C38 #62287C #7C2842
monochromatic
#0A1F0E #194E23 #287C38 #37AA4D #56C86C

Accessibility & contrast

On white

5.21
#287C38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#287C38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287C38
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287C38#FFFFFF#000000##FFFFFF
##287C381.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7132
Deuteranopia (green-blind)
#736A3D
Tritanopia (blue-blind)
#0D796D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287c38;
/* rgb */ color: rgb(40, 124, 56);
/* oklch */ color: oklch(52.0% 0.130 146.8);
Tailwind
colors: {
  custom: {
    50: '#6da370',
    500: '#287c38',
    950: '#000000',
  },
}
SCSS
$custom: #287c38;
$custom-light: #6da370;
$custom-dark: #000000;
JSON
{
  "hex": "#287c38",
  "rgb": {
    "r": 40,
    "g": 124,
    "b": 56
  },
  "hsl": {
    "h": 131.429,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51954,
    "c": 0.1303,
    "h": 146.8
  },
  "luminance": 0.15152
}

Semantic roles & 50–950 ramp

primary
#287C38
secondary
#AD529C
accent
#4DC0DB
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #287C38

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

Preview Lab → · Contrast checker → · Palette generator →

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