#28370C#28370C

#28370C is a dark, moderate yellow-green. Relative luminance 0.032; OKLCH L 31.3% C 0.068 H 126.6°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#28370C
RGBrgb(40, 55, 12)
HSLhsl(81, 64%, 13%)
HSVhsv(81, 78%, 22%)
CMYKcmyk(27.3%, 0%, 78.2%, 78.4%)
CIE-LABlab(20.87, -14.12, 23.88)
CIE-LCHlch(20.87, 27.74, 120.61°)
OKLaboklab(31.3% -0.0404 0.0544)
OKLCHoklch(31.3% 0.068 126.6)
XYZxyz(2.3076, 3.2100, 0.8458)
Luminance0.0321 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28370C #1B0C37
analogous
#37300C #28370C #12370C
triadic
#28370C #0C2837 #370C28
tetradic
#28370C #0C3730 #1B0C37 #370C12
square
#28370C #0C3730 #1B0C37 #370C12
split-complementary
#28370C #0C1237 #300C37
monochromatic
#121905 #121905 #28370C #4D6917 #719B22

Accessibility & contrast

On white

12.79
#28370C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#28370C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28370C
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28370C#FFFFFF#000000##FFFFFF
##28370C1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3306
Deuteranopia (green-blind)
#38320F
Tritanopia (blue-blind)
#2A342E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28370c;
/* rgb */ color: rgb(40, 55, 12);
/* oklch */ color: oklch(31.3% 0.068 126.6);
Tailwind
colors: {
  custom: {
    50: '#646d4d',
    500: '#28370c',
    950: '#000000',
  },
}
SCSS
$custom: #28370c;
$custom-light: #646d4d;
$custom-dark: #000000;
JSON
{
  "hex": "#28370c",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 12
  },
  "hsl": {
    "h": 80.93,
    "s": 64.179,
    "l": 13.137
  },
  "oklch": {
    "l": 0.313,
    "c": 0.06775,
    "h": 126.6
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#28370C
secondary
#452C73
accent
#41E77B
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050701
muted
#7A7A77

Preview Lab

Preview with #28370C

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

Preview Lab → · Contrast checker → · Palette generator →

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