#28792F#28792F

#28792F is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.134 H 144.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#28792F
RGBrgb(40, 121, 47)
HSLhsl(125, 50%, 32%)
HSVhsv(125, 67%, 47%)
CMYKcmyk(66.9%, 0%, 61.2%, 52.5%)
CIE-LABlab(44.70, -40.49, 32.94)
CIE-LCHlch(44.70, 52.20, 140.87°)
OKLaboklab(50.98% -0.1096 0.0778)
OKLCHoklch(50.98% 0.134 144.7)
XYZxyz(8.2250, 14.3303, 5.0213)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28792F #792872
analogous
#4A7928 #28792F #287958
triadic
#28792F #2F2879 #792F28
tetradic
#28792F #284A79 #792872 #795828
square
#28792F #284A79 #792872 #795828
split-complementary
#28792F #582879 #79284A
monochromatic
#0A1D0B #194B1D #28792F #37A741 #55C75F

Accessibility & contrast

On white

5.43
#28792F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#28792F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28792F
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28792F#FFFFFF#000000##FFFFFF
##28792F1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E27
Deuteranopia (green-blind)
#716735
Tritanopia (blue-blind)
#147669
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #28792f;
/* rgb */ color: rgb(40, 121, 47);
/* oklch */ color: oklch(51.0% 0.134 144.7);
Tailwind
colors: {
  custom: {
    50: '#6da06a',
    500: '#28792f',
    950: '#000000',
  },
}
SCSS
$custom: #28792f;
$custom-light: #6da06a;
$custom-dark: #000000;
JSON
{
  "hex": "#28792f",
  "rgb": {
    "r": 40,
    "g": 121,
    "b": 47
  },
  "hsl": {
    "h": 125.185,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.50978,
    "c": 0.13441,
    "h": 144.7
  },
  "luminance": 0.14331
}

Semantic roles & 50–950 ramp

primary
#28792F
secondary
#AB52A3
accent
#4ECEDA
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080F06
muted
#7A7E7A

Preview Lab

Preview with #28792F

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

Preview Lab → · Contrast checker → · Palette generator →

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