#28751F#28751F

#28751F is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.142 H 141.6°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#28751F
RGBrgb(40, 117, 31)
HSLhsl(114, 58%, 29%)
HSVhsv(114, 74%, 46%)
CMYKcmyk(65.8%, 0%, 73.5%, 54.1%)
CIE-LABlab(43.17, -40.74, 38.65)
CIE-LCHlch(43.17, 56.16, 136.51°)
OKLaboklab(49.66% -0.1112 0.0881)
OKLCHoklch(49.66% 0.142 141.6)
XYZxyz(7.4833, 13.2719, 3.4634)
Luminance0.1327 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28751F #6C1F75
analogous
#53751F #28751F #1F7541
triadic
#28751F #1F2875 #751F28
tetradic
#28751F #1F5375 #6C1F75 #75411F
square
#28751F #1F5375 #6C1F75 #75411F
split-complementary
#28751F #411F75 #751F53
monochromatic
#081806 #174512 #28751F #39A52C #50CD42

Accessibility & contrast

On white

5.75
#28751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#28751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28751F
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28751F#FFFFFF#000000##FFFFFF
##28751F1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A11
Deuteranopia (green-blind)
#6F6427
Tritanopia (blue-blind)
#1A7164
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #28751f;
/* rgb */ color: rgb(40, 117, 31);
/* oklch */ color: oklch(49.7% 0.142 141.6);
Tailwind
colors: {
  custom: {
    50: '#6d9e60',
    500: '#28751f',
    950: '#000000',
  },
}
SCSS
$custom: #28751f;
$custom-light: #6d9e60;
$custom-dark: #000000;
JSON
{
  "hex": "#28751f",
  "rgb": {
    "r": 40,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 113.721,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.49662,
    "c": 0.14182,
    "h": 141.6
  },
  "luminance": 0.13273
}

Semantic roles & 50–950 ramp

primary
#28751F
secondary
#9E47A9
accent
#46E1D1
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #28751F

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

Preview Lab → · Contrast checker → · Palette generator →

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