#28122A#28122A

#28122A is a very dark, muted purple. Relative luminance 0.011; OKLCH L 22.6% C 0.054 H 324.1°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#28122A
RGBrgb(40, 18, 42)
HSLhsl(295, 40%, 12%)
HSVhsv(295, 57%, 16%)
CMYKcmyk(4.8%, 57.1%, 0%, 83.5%)
CIE-LABlab(9.41, 16.15, -11.58)
CIE-LCHlch(9.41, 19.88, 324.35°)
OKLaboklab(22.57% 0.044 -0.0318)
OKLCHoklch(22.57% 0.054 324.1)
XYZxyz(1.5093, 1.0510, 2.3134)
Luminance0.0105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28122A #142A12
analogous
#1C122A #28122A #2A1220
triadic
#28122A #2A2812 #122A28
tetradic
#28122A #2A1C12 #142A12 #12202A
square
#28122A #2A1C12 #142A12 #12202A
split-complementary
#28122A #202A12 #122A1C
monochromatic
#140915 #140915 #28122A #512455 #7A3780

Accessibility & contrast

On white

17.35
#28122A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#28122A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28122A
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28122A#FFFFFF#000000##FFFFFF
##28122A1.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192B
Deuteranopia (green-blind)
#151B29
Tritanopia (blue-blind)
#29151C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #28122a;
/* rgb */ color: rgb(40, 18, 42);
/* oklch */ color: oklch(22.6% 0.054 324.1);
Tailwind
colors: {
  custom: {
    50: '#635063',
    500: '#28122a',
    950: '#000000',
  },
}
SCSS
$custom: #28122a;
$custom-light: #635063;
$custom-dark: #000000;
JSON
{
  "hex": "#28122a",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 42
  },
  "hsl": {
    "h": 295,
    "s": 40,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22568,
    "c": 0.05427,
    "h": 324.1
  },
  "luminance": 0.01051
}

Semantic roles & 50–950 ramp

primary
#28122A
secondary
#3A6137
accent
#D05862
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050205
muted
#797879

Preview Lab

Preview with #28122A

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

Preview Lab → · Contrast checker → · Palette generator →

#28122A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva