#28791F#28791F

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

Color values

HEX#28791F
RGBrgb(40, 121, 31)
HSLhsl(114, 59%, 30%)
HSVhsv(114, 74%, 47%)
CMYKcmyk(66.9%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.55, -42.25, 40.08)
CIE-LCHlch(44.55, 58.24, 136.51°)
OKLaboklab(50.81% -0.1152 0.0911)
OKLCHoklch(50.81% 0.147 141.7)
XYZxyz(7.9593, 14.2240, 3.6221)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28791F #701F79
analogous
#55791F #28791F #1F7943
triadic
#28791F #1F2879 #791F28
tetradic
#28791F #1F5579 #701F79 #79431F
square
#28791F #1F5579 #701F79 #79431F
split-complementary
#28791F #431F79 #791F55
monochromatic
#081806 #184813 #28791F #38AA2B #51CF43

Accessibility & contrast

On white

5.46
#28791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #28791F
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28791F#FFFFFF#000000##FFFFFF
##28791F1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28791f;
/* rgb */ color: rgb(40, 121, 31);
/* oklch */ color: oklch(50.8% 0.147 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ea161',
    500: '#28791f',
    950: '#000000',
  },
}
SCSS
$custom: #28791f;
$custom-light: #6ea161;
$custom-dark: #000000;
JSON
{
  "hex": "#28791f",
  "rgb": {
    "r": 40,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 114,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50805,
    "c": 0.14688,
    "h": 141.7
  },
  "luminance": 0.14225
}

Semantic roles & 50–950 ramp

primary
#28791F
secondary
#A247AC
accent
#45E2D3
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #28791F

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

Preview Lab → · Contrast checker → · Palette generator →

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