#201226#201226

#201226 is a very dark, muted purple. Relative luminance 0.009; OKLCH L 21.1% C 0.043 H 315.2°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#201226
RGBrgb(32, 18, 38)
HSLhsl(282, 36%, 11%)
HSVhsv(282, 53%, 15%)
CMYKcmyk(15.8%, 52.6%, 0%, 85.1%)
CIE-LABlab(7.95, 11.96, -10.97)
CIE-LCHlch(7.95, 16.23, 317.48°)
OKLaboklab(21.13% 0.0305 -0.0303)
OKLCHoklch(21.13% 0.043 315.2)
XYZxyz(1.1618, 0.8797, 1.9419)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201226 #182612
analogous
#161226 #201226 #261222
triadic
#201226 #262012 #122620
tetradic
#201226 #261612 #182612 #122226
square
#201226 #261612 #182612 #122226
split-complementary
#201226 #222612 #122616
monochromatic
#110A15 #110A15 #201226 #432650 #663979

Accessibility & contrast

On white

17.86
#201226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#201226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201226
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201226#FFFFFF#000000##FFFFFF
##2012261.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1727
Deuteranopia (green-blind)
#121825
Tritanopia (blue-blind)
#20151A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #201226;
/* rgb */ color: rgb(32, 18, 38);
/* oklch */ color: oklch(21.1% 0.043 315.2);
Tailwind
colors: {
  custom: {
    50: '#5c5060',
    500: '#201226',
    950: '#000000',
  },
}
SCSS
$custom: #201226;
$custom-light: #5c5060;
$custom-dark: #000000;
JSON
{
  "hex": "#201226",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 38
  },
  "hsl": {
    "h": 282,
    "s": 35.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21128,
    "c": 0.04299,
    "h": 315.2
  },
  "luminance": 0.0088
}

Semantic roles & 50–950 ramp

primary
#201226
secondary
#435C37
accent
#CC5C7E
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040204
muted
#797879

Preview Lab

Preview with #201226

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

Preview Lab → · Contrast checker → · Palette generator →

#201226 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva