#288540#288540

#288540 is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.6% C 0.135 H 148.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#288540
RGBrgb(40, 133, 64)
HSLhsl(135, 54%, 34%)
HSVhsv(135, 70%, 52%)
CMYKcmyk(69.9%, 0%, 51.9%, 47.8%)
CIE-LABlab(49.00, -42.67, 29.33)
CIE-LCHlch(49.00, 51.78, 145.49°)
OKLaboklab(54.6% -0.115 0.071)
OKLCHoklch(54.6% 0.135 148.3)
XYZxyz(10.1873, 17.5952, 7.7088)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288540 #85286D
analogous
#3F8528 #288540 #28856F
triadic
#288540 #402885 #854028
tetradic
#288540 #283F85 #85286D #856F28
square
#288540 #283F85 #85286D #856F28
split-complementary
#288540 #6F2885 #85283F
monochromatic
#0C2713 #1A5629 #288540 #36B457 #5ACD78

Accessibility & contrast

On white

4.65
#288540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#288540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #288540
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288540#FFFFFF#000000##FFFFFF
##2885401.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86793A
Deuteranopia (green-blind)
#7B7145
Tritanopia (blue-blind)
#008275
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #288540;
/* rgb */ color: rgb(40, 133, 64);
/* oklch */ color: oklch(54.6% 0.135 148.3);
Tailwind
colors: {
  custom: {
    50: '#6fa976',
    500: '#288540',
    950: '#000000',
  },
}
SCSS
$custom: #288540;
$custom-light: #6fa976;
$custom-dark: #000000;
JSON
{
  "hex": "#288540",
  "rgb": {
    "r": 40,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 135.484,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54599,
    "c": 0.13518,
    "h": 148.3
  },
  "luminance": 0.17596
}

Semantic roles & 50–950 ramp

primary
#288540
secondary
#B3569B
accent
#4BB7DD
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #288540

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

Preview Lab → · Contrast checker → · Palette generator →

#288540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva