#201252#201252

#201252 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.109 H 285.4°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#201252
RGBrgb(32, 18, 82)
HSLhsl(253, 64%, 20%)
HSVhsv(253, 78%, 32%)
CMYKcmyk(61%, 78%, 0%, 67.8%)
CIE-LABlab(11.61, 26.32, -36.57)
CIE-LCHlch(11.61, 45.06, 305.74°)
OKLaboklab(24.96% 0.029 -0.1052)
OKLCHoklch(24.96% 0.109 285.4)
XYZxyz(2.3345, 1.3488, 8.1183)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201252 #445212
analogous
#122452 #201252 #401252
triadic
#201252 #522012 #125220
tetradic
#201252 #521224 #445212 #125240
square
#201252 #521224 #445212 #125240
split-complementary
#201252 #524012 #245212
monochromatic
#0A0619 #0C0720 #201252 #341D84 #4728B6

Accessibility & contrast

On white

16.54
#201252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#201252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201252
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201252#FFFFFF#000000##FFFFFF
##2012521.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#092330
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #201252;
/* rgb */ color: rgb(32, 18, 82);
/* oklch */ color: oklch(25.0% 0.109 285.4);
Tailwind
colors: {
  custom: {
    50: '#625183',
    500: '#201252',
    950: '#000000',
  },
}
SCSS
$custom: #201252;
$custom-light: #625183;
$custom-dark: #000000;
JSON
{
  "hex": "#201252",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 253.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24957,
    "c": 0.10915,
    "h": 285.4
  },
  "luminance": 0.01349
}

Semantic roles & 50–950 ramp

primary
#201252
secondary
#788B35
accent
#E741C3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #201252

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

Preview Lab → · Contrast checker → · Palette generator →

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