#28791B#28791B

#28791B is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.149 H 141.2°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#28791B
RGBrgb(40, 121, 27)
HSLhsl(112, 64%, 29%)
HSVhsv(112, 78%, 47%)
CMYKcmyk(66.9%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.52, -42.58, 41.61)
CIE-LCHlch(44.52, 59.54, 135.66°)
OKLaboklab(50.77% -0.1164 0.0937)
OKLCHoklch(50.77% 0.149 141.2)
XYZxyz(7.9099, 14.2042, 3.3615)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28791B #6C1B79
analogous
#57791B #28791B #1B793D
triadic
#28791B #1B2879 #791B28
tetradic
#28791B #1B5779 #6C1B79 #793D1B
square
#28791B #1B5779 #6C1B79 #793D1B
split-complementary
#28791B #3D1B79 #791B57
monochromatic
#081906 #174710 #28791B #39AB26 #50D33B

Accessibility & contrast

On white

5.47
#28791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#28791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28791B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28791B#FFFFFF#000000##FFFFFF
##28791B1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#197567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #28791b;
/* rgb */ color: rgb(40, 121, 27);
/* oklch */ color: oklch(50.8% 0.149 141.2);
Tailwind
colors: {
  custom: {
    50: '#6ea15e',
    500: '#28791b',
    950: '#000000',
  },
}
SCSS
$custom: #28791b;
$custom-light: #6ea15e;
$custom-dark: #000000;
JSON
{
  "hex": "#28791b",
  "rgb": {
    "r": 40,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 111.702,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50773,
    "c": 0.1494,
    "h": 141.2
  },
  "luminance": 0.14205
}

Semantic roles & 50–950 ramp

primary
#28791B
secondary
#9E43AD
accent
#41E7D0
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #28791B

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

Preview Lab → · Contrast checker → · Palette generator →

#28791B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva