#21125C#21125C

#21125C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.123 H 283.2°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#21125C
RGBrgb(33, 18, 92)
HSLhsl(252, 67%, 22%)
HSVhsv(252, 80%, 36%)
CMYKcmyk(64.1%, 80.4%, 0%, 63.9%)
CIE-LABlab(12.79, 29.87, -41.41)
CIE-LCHlch(12.79, 51.06, 305.80°)
OKLaboklab(26.14% 0.028 -0.1194)
OKLCHoklch(26.14% 0.123 283.2)
XYZxyz(2.7747, 1.5285, 10.2720)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21125C #4D5C12
analogous
#12285C #21125C #46125C
triadic
#21125C #5C2112 #125C21
tetradic
#21125C #5C1228 #4D5C12 #125C46
square
#21125C #5C1228 #4D5C12 #125C46
split-complementary
#21125C #5C4612 #285C12
monochromatic
#09051A #0F0829 #21125C #331C8F #4626C2

Accessibility & contrast

On white

16.08
#21125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#21125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21125C
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21125C#FFFFFF#000000##FFFFFF
##21125C1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21125c;
/* rgb */ color: rgb(33, 18, 92);
/* oklch */ color: oklch(26.1% 0.123 283.2);
Tailwind
colors: {
  custom: {
    50: '#65528b',
    500: '#21125c',
    950: '#000000',
  },
}
SCSS
$custom: #21125c;
$custom-light: #65528b;
$custom-dark: #000000;
JSON
{
  "hex": "#21125c",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 252.162,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26139,
    "c": 0.1226,
    "h": 283.2
  },
  "luminance": 0.01529
}

Semantic roles & 50–950 ramp

primary
#21125C
secondary
#819435
accent
#EA3EC7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21125C

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

Preview Lab → · Contrast checker → · Palette generator →

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