#288E42#288E42

#288E42 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.146 H 148.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#288E42
RGBrgb(40, 142, 66)
HSLhsl(135, 56%, 36%)
HSVhsv(135, 72%, 56%)
CMYKcmyk(71.8%, 0%, 53.5%, 44.3%)
CIE-LABlab(52.05, -45.80, 32.04)
CIE-LCHlch(52.05, 55.90, 145.02°)
OKLaboklab(57.13% -0.1234 0.0772)
OKLCHoklch(57.13% 0.146 148)
XYZxyz(11.5306, 20.1892, 8.4424)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288E42 #8E2874
analogous
#418E28 #288E42 #288E75
triadic
#288E42 #42288E #8E4228
tetradic
#288E42 #28418E #8E2874 #8E7528
square
#288E42 #28418E #8E2874 #8E7528
split-complementary
#288E42 #75288E #8E2841
monochromatic
#0D2F16 #1B5E2C #288E42 #35BE58 #5FD27C

Accessibility & contrast

On white

4.17
#288E42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#288E42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #288E42
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288E42#FFFFFF#000000##000000
##288E421.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#90813B
Deuteranopia (green-blind)
#837948
Tritanopia (blue-blind)
#008B7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #288e42;
/* rgb */ color: rgb(40, 142, 66);
/* oklch */ color: oklch(57.1% 0.146 148.0);
Tailwind
colors: {
  custom: {
    50: '#71b078',
    500: '#288e42',
    950: '#000000',
  },
}
SCSS
$custom: #288e42;
$custom-light: #71b078;
$custom-dark: #000000;
JSON
{
  "hex": "#288e42",
  "rgb": {
    "r": 40,
    "g": 142,
    "b": 66
  },
  "hsl": {
    "h": 135.294,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57128,
    "c": 0.14554,
    "h": 148
  },
  "luminance": 0.2019
}

Semantic roles & 50–950 ramp

primary
#288E42
secondary
#B75BA0
accent
#48B9DF
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#091109
muted
#7B807B

Preview Lab

Preview with #288E42

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

Preview Lab → · Contrast checker → · Palette generator →

#288E42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva