#28891F#28891F

#28891F is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.3% C 0.166 H 141.9°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#28891F
RGBrgb(40, 137, 31)
HSLhsl(115, 63%, 33%)
HSVhsv(115, 77%, 54%)
CMYKcmyk(70.8%, 0%, 77.4%, 46.3%)
CIE-LABlab(50.03, -48.02, 45.60)
CIE-LCHlch(50.03, 66.22, 136.48°)
OKLaboklab(55.34% -0.1308 0.1026)
OKLCHoklch(55.34% 0.166 141.9)
XYZxyz(10.0675, 18.4403, 4.3248)
Luminance0.1844 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28891F #801F89
analogous
#5D891F #28891F #1F894B
triadic
#28891F #1F2889 #891F28
tetradic
#28891F #1F5D89 #801F89 #894B1F
square
#28891F #1F5D89 #801F89 #894B1F
split-complementary
#28891F #4B1F89 #891F5D
monochromatic
#0B2508 #195714 #28891F #37BB2A #58D64C

Accessibility & contrast

On white

4.48
#28891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#28891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28891F
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28891F#FFFFFF#000000##000000
##28891F1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C08
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#108575
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #28891f;
/* rgb */ color: rgb(40, 137, 31);
/* oklch */ color: oklch(55.3% 0.166 141.9);
Tailwind
colors: {
  custom: {
    50: '#71ac63',
    500: '#28891f',
    950: '#000000',
  },
}
SCSS
$custom: #28891f;
$custom-light: #71ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#28891f",
  "rgb": {
    "r": 40,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 114.906,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55341,
    "c": 0.16627,
    "h": 141.9
  },
  "luminance": 0.18441
}

Semantic roles & 50–950 ramp

primary
#28891F
secondary
#B04BB9
accent
#42E6D8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #28891F

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

Preview Lab → · Contrast checker → · Palette generator →

#28891F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva