#28671F#28671F

#28671F is a mid, vivid green. Relative luminance 0.103; OKLCH L 45.6% C 0.123 H 141.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#28671F
RGBrgb(40, 103, 31)
HSLhsl(113, 54%, 26%)
HSVhsv(113, 70%, 40%)
CMYKcmyk(61.2%, 0%, 69.9%, 59.6%)
CIE-LABlab(38.29, -35.22, 33.46)
CIE-LCHlch(38.29, 48.58, 136.46°)
OKLaboklab(45.63% -0.0962 0.0772)
OKLCHoklch(45.63% 0.123 141.3)
XYZxyz(5.9724, 10.2500, 2.9598)
Luminance0.1025 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28671F #5E1F67
analogous
#4C671F #28671F #1F673A
triadic
#28671F #1F2867 #671F28
tetradic
#28671F #1F4C67 #5E1F67 #673A1F
square
#28671F #1F4C67 #5E1F67 #673A1F
split-complementary
#28671F #3A1F67 #671F4C
monochromatic
#091807 #163811 #28671F #3A962D #4DC43C

Accessibility & contrast

On white

6.88
#28671F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#28671F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28671F
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28671F#FFFFFF#000000##FFFFFF
##28671F1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D16
Deuteranopia (green-blind)
#625825
Tritanopia (blue-blind)
#1F6458
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #28671f;
/* rgb */ color: rgb(40, 103, 31);
/* oklch */ color: oklch(45.6% 0.123 141.3);
Tailwind
colors: {
  custom: {
    50: '#6a935e',
    500: '#28671f',
    950: '#000000',
  },
}
SCSS
$custom: #28671f;
$custom-light: #6a935e;
$custom-dark: #000000;
JSON
{
  "hex": "#28671f",
  "rgb": {
    "r": 40,
    "g": 103,
    "b": 31
  },
  "hsl": {
    "h": 112.5,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.45627,
    "c": 0.12334,
    "h": 141.3
  },
  "luminance": 0.10251
}

Semantic roles & 50–950 ramp

primary
#28671F
secondary
#91469B
accent
#4BDDCB
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#070D05
muted
#7A7E79

Preview Lab

Preview with #28671F

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

Preview Lab → · Contrast checker → · Palette generator →

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