#28791C#28791C

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

Color values

HEX#28791C
RGBrgb(40, 121, 28)
HSLhsl(112, 62%, 29%)
HSVhsv(112, 77%, 47%)
CMYKcmyk(66.9%, 0%, 76.9%, 52.5%)
CIE-LABlab(44.53, -42.51, 41.24)
CIE-LCHlch(44.53, 59.22, 135.87°)
OKLaboklab(50.78% -0.1161 0.093)
OKLCHoklch(50.78% 0.149 141.3)
XYZxyz(7.9216, 14.2089, 3.4235)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28791C #6D1C79
analogous
#57791C #28791C #1C793F
triadic
#28791C #1C2879 #791C28
tetradic
#28791C #1C5779 #6D1C79 #793F1C
square
#28791C #1C5779 #6D1C79 #793F1C
split-complementary
#28791C #3F1C79 #791C57
monochromatic
#081906 #184710 #28791C #38AB28 #50D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28791C#FFFFFF#000000##FFFFFF
##28791C1.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)
#7C6D0A
Deuteranopia (green-blind)
#726726
Tritanopia (blue-blind)
#197567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #28791c;
/* rgb */ color: rgb(40, 121, 28);
/* oklch */ color: oklch(50.8% 0.149 141.3);
Tailwind
colors: {
  custom: {
    50: '#6ea15f',
    500: '#28791c',
    950: '#000000',
  },
}
SCSS
$custom: #28791c;
$custom-light: #6ea15f;
$custom-dark: #000000;
JSON
{
  "hex": "#28791c",
  "rgb": {
    "r": 40,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 112.258,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50781,
    "c": 0.14879,
    "h": 141.3
  },
  "luminance": 0.1421
}

Semantic roles & 50–950 ramp

primary
#28791C
secondary
#9F44AD
accent
#42E5D0
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #28791C

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

Preview Lab → · Contrast checker → · Palette generator →

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