#28162C#28162C

#28162C is a very dark, muted purple. Relative luminance 0.012; OKLCH L 23.5% C 0.048 H 320.2°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#28162C
RGBrgb(40, 22, 44)
HSLhsl(289, 33%, 13%)
HSVhsv(289, 50%, 17%)
CMYKcmyk(9.1%, 50%, 0%, 82.7%)
CIE-LABlab(10.61, 13.90, -11.20)
CIE-LCHlch(10.61, 17.85, 321.14°)
OKLaboklab(23.5% 0.0369 -0.0308)
OKLCHoklch(23.5% 0.048 320.2)
XYZxyz(1.6165, 1.2068, 2.5302)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28162C #1A2C16
analogous
#1D162C #28162C #2C1625
triadic
#28162C #2C2816 #162C28
tetradic
#28162C #2C1D16 #1A2C16 #16252C
square
#28162C #2C1D16 #1A2C16 #16252C
split-complementary
#28162C #252C16 #162C1D
monochromatic
#130A14 #130A14 #28162C #4D2A55 #723F7E

Accessibility & contrast

On white

16.92
#28162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#28162C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28162C
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28162C#FFFFFF#000000##FFFFFF
##28162C1.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131B2D
Deuteranopia (green-blind)
#181D2B
Tritanopia (blue-blind)
#28191E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #28162c;
/* rgb */ color: rgb(40, 22, 44);
/* oklch */ color: oklch(23.5% 0.048 320.2);
Tailwind
colors: {
  custom: {
    50: '#625365',
    500: '#28162c',
    950: '#000000',
  },
}
SCSS
$custom: #28162c;
$custom-light: #625365;
$custom-dark: #000000;
JSON
{
  "hex": "#28162c",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 289.091,
    "s": 33.333,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23501,
    "c": 0.04802,
    "h": 320.2
  },
  "luminance": 0.01207
}

Semantic roles & 50–950 ramp

primary
#28162C
secondary
#43613C
accent
#C95E72
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050205
muted
#79787A

Preview Lab

Preview with #28162C

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

Preview Lab → · Contrast checker → · Palette generator →

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