#21105A#21105A

#21105A is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.6% C 0.122 H 284.3°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#21105A
RGBrgb(33, 16, 90)
HSLhsl(254, 70%, 21%)
HSVhsv(254, 82%, 35%)
CMYKcmyk(63.3%, 82.2%, 0%, 64.7%)
CIE-LABlab(12.17, 30.34, -41.09)
CIE-LCHlch(12.17, 51.07, 306.44°)
OKLaboklab(25.64% 0.0301 -0.1184)
OKLCHoklch(25.64% 0.122 284.3)
XYZxyz(2.6574, 1.4319, 9.8072)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21105A #495A10
analogous
#10245A #21105A #46105A
triadic
#21105A #5A2110 #105A21
tetradic
#21105A #5A1024 #495A10 #105A46
square
#21105A #5A1024 #495A10 #105A46
split-complementary
#21105A #5A4610 #245A10
monochromatic
#0A051A #0E0726 #21105A #34198E #4722C2

Accessibility & contrast

On white

16.32
#21105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21105A
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21105A#FFFFFF#000000##FFFFFF
##21105A1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001D59
Tritanopia (blue-blind)
#012534
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #21105a;
/* rgb */ color: rgb(33, 16, 90);
/* oklch */ color: oklch(25.6% 0.122 284.3);
Tailwind
colors: {
  custom: {
    50: '#655089',
    500: '#21105a',
    950: '#000000',
  },
}
SCSS
$custom: #21105a;
$custom-light: #655089;
$custom-dark: #000000;
JSON
{
  "hex": "#21105a",
  "rgb": {
    "r": 33,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 253.784,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25638,
    "c": 0.12216,
    "h": 284.3
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#21105A
secondary
#7D9333
accent
#ED3BC4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21105A

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

Preview Lab → · Contrast checker → · Palette generator →

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