#288F21#288F21

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

Color values

HEX#288F21
RGBrgb(40, 143, 33)
HSLhsl(116, 63%, 35%)
HSVhsv(116, 77%, 56%)
CMYKcmyk(72%, 0%, 76.9%, 43.9%)
CIE-LABlab(52.07, -49.94, 46.90)
CIE-LCHlch(52.07, 68.51, 136.80°)
OKLaboklab(57.04% -0.1359 0.1056)
OKLCHoklch(57.04% 0.172 142.2)
XYZxyz(10.9714, 20.2046, 4.7602)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288F21 #88218F
analogous
#5F8F21 #288F21 #218F51
triadic
#288F21 #21288F #8F2128
tetradic
#288F21 #215F8F #88218F #8F5121
square
#288F21 #215F8F #88218F #8F5121
split-complementary
#288F21 #51218F #8F215F
monochromatic
#0C2C0A #1A5D16 #288F21 #36C12C #5BD753

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##288F21#FFFFFF#000000##000000
##288F211.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)
#928109
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#098B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #288f21;
/* rgb */ color: rgb(40, 143, 33);
/* oklch */ color: oklch(57.0% 0.172 142.2);
Tailwind
colors: {
  custom: {
    50: '#73b164',
    500: '#288f21',
    950: '#000000',
  },
}
SCSS
$custom: #288f21;
$custom-light: #73b164;
$custom-dark: #000000;
JSON
{
  "hex": "#288f21",
  "rgb": {
    "r": 40,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 116.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57039,
    "c": 0.17213,
    "h": 142.2
  },
  "luminance": 0.20206
}

Semantic roles & 50–950 ramp

primary
#288F21
secondary
#B451BB
accent
#42E6DB
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #288F21

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

Preview Lab → · Contrast checker → · Palette generator →

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