#21105C#21105C

#21105C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.9% C 0.125 H 283.7°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#21105C
RGBrgb(33, 16, 92)
HSLhsl(253, 70%, 21%)
HSVhsv(253, 83%, 36%)
CMYKcmyk(64.1%, 82.6%, 0%, 63.9%)
CIE-LABlab(12.39, 31.00, -42.06)
CIE-LCHlch(12.39, 52.25, 306.39°)
OKLaboklab(25.86% 0.0295 -0.1212)
OKLCHoklch(25.86% 0.125 283.7)
XYZxyz(2.7437, 1.4664, 10.2616)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21105C #4B5C10
analogous
#10255C #21105C #47105C
triadic
#21105C #5C2110 #105C21
tetradic
#21105C #5C1025 #4B5C10 #105C47
square
#21105C #5C1025 #4B5C10 #105C47
split-complementary
#21105C #5C4710 #255C10
monochromatic
#09051A #0E0728 #21105C #341990 #4622C4

Accessibility & contrast

On white

16.24
#21105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#21105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21105C
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21105C#FFFFFF#000000##FFFFFF
##21105C1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #21105c;
/* rgb */ color: rgb(33, 16, 92);
/* oklch */ color: oklch(25.9% 0.125 283.7);
Tailwind
colors: {
  custom: {
    50: '#65518b',
    500: '#21105c',
    950: '#000000',
  },
}
SCSS
$custom: #21105c;
$custom-light: #65518b;
$custom-dark: #000000;
JSON
{
  "hex": "#21105c",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 253.421,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25862,
    "c": 0.12478,
    "h": 283.7
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#21105C
secondary
#7F9533
accent
#ED3BC5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21105C

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

Preview Lab → · Contrast checker → · Palette generator →

#21105C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva