#28371C#28371C

#28371C is a dark, muted yellow-green. Relative luminance 0.033; OKLCH L 31.5% C 0.049 H 132.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#28371C
RGBrgb(40, 55, 28)
HSLhsl(93, 33%, 16%)
HSVhsv(93, 49%, 22%)
CMYKcmyk(27.3%, 0%, 49.1%, 78.4%)
CIE-LABlab(21.08, -12.13, 14.95)
CIE-LCHlch(21.08, 19.25, 129.05°)
OKLaboklab(31.55% -0.0333 0.0366)
OKLCHoklch(31.55% 0.049 132.3)
XYZxyz(2.4508, 3.2673, 1.5999)
Luminance0.0327 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28371C #2B1C37
analogous
#36371C #28371C #1C371E
triadic
#28371C #1C2837 #371C28
tetradic
#28371C #1C3637 #2B1C37 #371E1C
square
#28371C #1C3637 #2B1C37 #371E1C
split-complementary
#28371C #1E1C37 #371C36
monochromatic
#0F140A #0F140A #28371C #456031 #638845

Accessibility & contrast

On white

12.70
#28371C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#28371C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28371C
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28371C#FFFFFF#000000##FFFFFF
##28371C1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39331A
Deuteranopia (green-blind)
#37321E
Tritanopia (blue-blind)
#283530
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28371c;
/* rgb */ color: rgb(40, 55, 28);
/* oklch */ color: oklch(31.5% 0.049 132.3);
Tailwind
colors: {
  custom: {
    50: '#626d58',
    500: '#28371c',
    950: '#000000',
  },
}
SCSS
$custom: #28371c;
$custom-light: #626d58;
$custom-dark: #000000;
JSON
{
  "hex": "#28371c",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 28
  },
  "hsl": {
    "h": 93.333,
    "s": 32.53,
    "l": 16.275
  },
  "oklch": {
    "l": 0.31547,
    "c": 0.04947,
    "h": 132.3
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#28371C
secondary
#5A436B
accent
#5FC99A
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050703
muted
#797A78

Preview Lab

Preview with #28371C

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

Preview Lab → · Contrast checker → · Palette generator →

#28371C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva