#28162E#28162E

#28162E is a very dark, muted purple. Relative luminance 0.012; OKLCH L 23.6% C 0.051 H 317.3°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#28162E
RGBrgb(40, 22, 46)
HSLhsl(285, 35%, 13%)
HSVhsv(285, 52%, 18%)
CMYKcmyk(13%, 52.2%, 0%, 82%)
CIE-LABlab(10.72, 14.43, -12.49)
CIE-LCHlch(10.72, 19.08, 319.11°)
OKLaboklab(23.62% 0.0374 -0.0345)
OKLCHoklch(23.62% 0.051 317.3)
XYZxyz(1.6551, 1.2222, 2.7330)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28162E #1C2E16
analogous
#1C162E #28162E #2E1628
triadic
#28162E #2E2816 #162E28
tetradic
#28162E #2E1C16 #1C2E16 #16282E
square
#28162E #2E1C16 #1C2E16 #16282E
split-complementary
#28162E #282E16 #162E1C
monochromatic
#120A15 #120A15 #28162E #4C2A57 #703E81

Accessibility & contrast

On white

16.88
#28162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28162E
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28162E#FFFFFF#000000##FFFFFF
##28162E1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121C2F
Deuteranopia (green-blind)
#171E2D
Tritanopia (blue-blind)
#28191F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #28162e;
/* rgb */ color: rgb(40, 22, 46);
/* oklch */ color: oklch(23.6% 0.051 317.3);
Tailwind
colors: {
  custom: {
    50: '#625366',
    500: '#28162e',
    950: '#000000',
  },
}
SCSS
$custom: #28162e;
$custom-light: #625366;
$custom-dark: #000000;
JSON
{
  "hex": "#28162e",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 285,
    "s": 35.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23622,
    "c": 0.05085,
    "h": 317.3
  },
  "luminance": 0.01222
}

Semantic roles & 50–950 ramp

primary
#28162E
secondary
#46643C
accent
#CB5C78
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050206
muted
#79787A

Preview Lab

Preview with #28162E

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

Preview Lab → · Contrast checker → · Palette generator →

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