#21125B#21125B

#21125B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.121 H 283.5°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#21125B
RGBrgb(33, 18, 91)
HSLhsl(252, 67%, 21%)
HSVhsv(252, 80%, 36%)
CMYKcmyk(63.7%, 80.2%, 0%, 64.3%)
CIE-LABlab(12.68, 29.53, -40.92)
CIE-LCHlch(12.68, 50.46, 305.82°)
OKLaboklab(26.03% 0.0283 -0.1179)
OKLCHoklch(26.03% 0.121 283.5)
XYZxyz(2.7313, 1.5111, 10.0432)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21125B #4C5B12
analogous
#12285B #21125B #46125B
triadic
#21125B #5B2112 #125B21
tetradic
#21125B #5B1228 #4C5B12 #125B46
square
#21125B #5B1228 #4C5B12 #125B46
split-complementary
#21125B #5B4612 #285B12
monochromatic
#09051A #0E0828 #21125B #341C8E #4626C1

Accessibility & contrast

On white

16.13
#21125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#21125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21125B
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21125B#FFFFFF#000000##FFFFFF
##21125B1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21125b;
/* rgb */ color: rgb(33, 18, 91);
/* oklch */ color: oklch(26.0% 0.121 283.5);
Tailwind
colors: {
  custom: {
    50: '#65528a',
    500: '#21125b',
    950: '#000000',
  },
}
SCSS
$custom: #21125b;
$custom-light: #65528a;
$custom-dark: #000000;
JSON
{
  "hex": "#21125b",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 252.329,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26029,
    "c": 0.12127,
    "h": 283.5
  },
  "luminance": 0.01511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21125B

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

Preview Lab → · Contrast checker → · Palette generator →

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