#288F42#288F42

#288F42 is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.147 H 147.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#288F42
RGBrgb(40, 143, 66)
HSLhsl(135, 56%, 36%)
HSVhsv(135, 72%, 56%)
CMYKcmyk(72%, 0%, 53.8%, 43.9%)
CIE-LABlab(52.38, -46.18, 32.45)
CIE-LCHlch(52.38, 56.44, 144.90°)
OKLaboklab(57.4% -0.1244 0.0781)
OKLCHoklch(57.4% 0.147 147.9)
XYZxyz(11.6800, 20.4881, 8.4922)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288F42 #8F2875
analogous
#418F28 #288F42 #288F75
triadic
#288F42 #42288F #8F4228
tetradic
#288F42 #28418F #8F2875 #8F7528
square
#288F42 #28418F #8F2875 #8F7528
split-complementary
#288F42 #75288F #8F2841
monochromatic
#0D2F16 #1B5F2C #288F42 #35BF58 #5FD27C

Accessibility & contrast

On white

4.12
#288F42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#288F42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #288F42
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288F42#FFFFFF#000000##000000
##288F421.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#91823B
Deuteranopia (green-blind)
#847A48
Tritanopia (blue-blind)
#008C7D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #288f42;
/* rgb */ color: rgb(40, 143, 66);
/* oklch */ color: oklch(57.4% 0.147 147.9);
Tailwind
colors: {
  custom: {
    50: '#71b178',
    500: '#288f42',
    950: '#000000',
  },
}
SCSS
$custom: #288f42;
$custom-light: #71b178;
$custom-dark: #000000;
JSON
{
  "hex": "#288f42",
  "rgb": {
    "r": 40,
    "g": 143,
    "b": 66
  },
  "hsl": {
    "h": 135.146,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57404,
    "c": 0.14688,
    "h": 147.9
  },
  "luminance": 0.20489
}

Semantic roles & 50–950 ramp

primary
#288F42
secondary
#B85BA0
accent
#48B9E0
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #288F42

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

Preview Lab → · Contrast checker → · Palette generator →

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