#201228#201228

#201228 is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.3% C 0.046 H 312.3°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#201228
RGBrgb(32, 18, 40)
HSLhsl(278, 38%, 11%)
HSVhsv(278, 55%, 16%)
CMYKcmyk(20%, 55%, 0%, 84.3%)
CIE-LABlab(8.07, 12.53, -12.28)
CIE-LCHlch(8.07, 17.55, 315.57°)
OKLaboklab(21.26% 0.031 -0.0341)
OKLCHoklch(21.26% 0.046 312.3)
XYZxyz(1.1949, 0.8929, 2.1165)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201228 #1A2812
analogous
#151228 #201228 #281225
triadic
#201228 #282012 #122820
tetradic
#201228 #281512 #1A2812 #122528
square
#201228 #281512 #1A2812 #122528
split-complementary
#201228 #252812 #122815
monochromatic
#110915 #110915 #201228 #422552 #64387C

Accessibility & contrast

On white

17.82
#201228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201228
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201228#FFFFFF#000000##FFFFFF
##2012281.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1729
Deuteranopia (green-blind)
#111827
Tritanopia (blue-blind)
#1F151B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #201228;
/* rgb */ color: rgb(32, 18, 40);
/* oklch */ color: oklch(21.3% 0.046 312.3);
Tailwind
colors: {
  custom: {
    50: '#5c5062',
    500: '#201228',
    950: '#000000',
  },
}
SCSS
$custom: #201228;
$custom-light: #5c5062;
$custom-dark: #000000;
JSON
{
  "hex": "#201228",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 278.182,
    "s": 37.931,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21257,
    "c": 0.04607,
    "h": 312.3
  },
  "luminance": 0.00893
}

Semantic roles & 50–950 ramp

primary
#201228
secondary
#455F37
accent
#CE5A84
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #201228

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

Preview Lab → · Contrast checker → · Palette generator →

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