#28951F#28951F

#28951F is a mid, vivid green. Relative luminance 0.220; OKLCH L 58.7% C 0.180 H 142.0°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#28951F
RGBrgb(40, 149, 31)
HSLhsl(115, 66%, 35%)
HSVhsv(115, 79%, 58%)
CMYKcmyk(73.2%, 0%, 79.2%, 41.6%)
CIE-LABlab(54.07, -52.12, 49.55)
CIE-LCHlch(54.07, 71.92, 136.45°)
OKLaboklab(58.7% -0.1419 0.1108)
OKLCHoklch(58.7% 0.18 142)
XYZxyz(11.8692, 22.0436, 4.9254)
Luminance0.2205 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28951F #8C1F95
analogous
#63951F #28951F #1F9551
triadic
#28951F #1F2895 #951F28
tetradic
#28951F #1F6395 #8C1F95 #95511F
square
#28951F #1F6395 #8C1F95 #95511F
split-complementary
#28951F #511F95 #951F63
monochromatic
#0D300A #1A6214 #28951F #36C82A #5EDB53

Accessibility & contrast

On white

3.88
#28951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#28951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28951F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28951F#FFFFFF#000000##000000
##28951F1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#04907F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #28951f;
/* rgb */ color: rgb(40, 149, 31);
/* oklch */ color: oklch(58.7% 0.180 142.0);
Tailwind
colors: {
  custom: {
    50: '#74b564',
    500: '#28951f',
    950: '#000000',
  },
}
SCSS
$custom: #28951f;
$custom-light: #74b564;
$custom-dark: #000000;
JSON
{
  "hex": "#28951f",
  "rgb": {
    "r": 40,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 115.424,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.587,
    "c": 0.18008,
    "h": 142
  },
  "luminance": 0.22045
}

Semantic roles & 50–950 ramp

primary
#28951F
secondary
#B651BF
accent
#3FE9DC
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #28951F

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

Preview Lab → · Contrast checker → · Palette generator →

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