#201158#201158

#201158 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.119 H 283.8°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#201158
RGBrgb(32, 17, 88)
HSLhsl(253, 68%, 21%)
HSVhsv(253, 81%, 35%)
CMYKcmyk(63.6%, 80.7%, 0%, 65.5%)
CIE-LABlab(12.04, 28.96, -39.95)
CIE-LCHlch(12.04, 49.34, 305.94°)
OKLaboklab(25.46% 0.0283 -0.1151)
OKLCHoklch(25.46% 0.119 283.8)
XYZxyz(2.5570, 1.4124, 9.3685)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201158 #495811
analogous
#112558 #201158 #431158
triadic
#201158 #582011 #115820
tetradic
#201158 #581125 #495811 #115843
square
#201158 #581125 #495811 #115843
split-complementary
#201158 #584311 #255811
monochromatic
#09051A #0D0725 #201158 #331B8B #4525BF

Accessibility & contrast

On white

16.37
#201158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#201158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201158
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201158#FFFFFF#000000##FFFFFF
##2011581.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#001D57
Tritanopia (blue-blind)
#012533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #201158;
/* rgb */ color: rgb(32, 17, 88);
/* oklch */ color: oklch(25.5% 0.119 283.8);
Tailwind
colors: {
  custom: {
    50: '#645188',
    500: '#201158',
    950: '#000000',
  },
}
SCSS
$custom: #201158;
$custom-light: #645188;
$custom-dark: #000000;
JSON
{
  "hex": "#201158",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 252.676,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25455,
    "c": 0.11854,
    "h": 283.8
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#201158
secondary
#7D9134
accent
#EA3DC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #201158

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

Preview Lab → · Contrast checker → · Palette generator →

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