#28781F#28781F

#28781F is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.146 H 141.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#28781F
RGBrgb(40, 120, 31)
HSLhsl(114, 59%, 30%)
HSVhsv(114, 74%, 47%)
CMYKcmyk(66.7%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.21, -41.88, 39.72)
CIE-LCHlch(44.21, 57.72, 136.51°)
OKLaboklab(50.52% -0.1142 0.0903)
OKLCHoklch(50.52% 0.146 141.7)
XYZxyz(7.8385, 13.9822, 3.5818)
Luminance0.1398 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28781F #6F1F78
analogous
#54781F #28781F #1F7843
triadic
#28781F #1F2878 #781F28
tetradic
#28781F #1F5478 #6F1F78 #78431F
square
#28781F #1F5478 #6F1F78 #78431F
split-complementary
#28781F #431F78 #781F54
monochromatic
#081806 #184712 #28781F #38A92C #51CE43

Accessibility & contrast

On white

5.53
#28781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#28781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28781F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28781F#FFFFFF#000000##FFFFFF
##28781F1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D10
Deuteranopia (green-blind)
#716628
Tritanopia (blue-blind)
#197466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #28781f;
/* rgb */ color: rgb(40, 120, 31);
/* oklch */ color: oklch(50.5% 0.146 141.7);
Tailwind
colors: {
  custom: {
    50: '#6da060',
    500: '#28781f',
    950: '#000000',
  },
}
SCSS
$custom: #28781f;
$custom-light: #6da060;
$custom-dark: #000000;
JSON
{
  "hex": "#28781f",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 113.933,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5052,
    "c": 0.14563,
    "h": 141.7
  },
  "luminance": 0.13983
}

Semantic roles & 50–950 ramp

primary
#28781F
secondary
#A147AB
accent
#46E2D2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #28781F

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

Preview Lab → · Contrast checker → · Palette generator →

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