#21125F#21125F

#21125F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.127 H 282.4°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#21125F
RGBrgb(33, 18, 95)
HSLhsl(252, 68%, 22%)
HSVhsv(252, 81%, 37%)
CMYKcmyk(65.3%, 81.1%, 0%, 62.7%)
CIE-LABlab(13.12, 30.87, -42.87)
CIE-LCHlch(13.12, 52.83, 305.76°)
OKLaboklab(26.47% 0.0271 -0.1236)
OKLCHoklch(26.47% 0.127 282.4)
XYZxyz(2.9084, 1.5820, 10.9763)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21125F #505F12
analogous
#122A5F #21125F #48125F
triadic
#21125F #5F2112 #125F21
tetradic
#21125F #5F122A #505F12 #125F48
square
#21125F #5F122A #505F12 #125F48
split-complementary
#21125F #5F4812 #2A5F12
monochromatic
#09051A #0F082C #21125F #331C92 #4525C6

Accessibility & contrast

On white

15.95
#21125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#21125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21125F
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21125F#FFFFFF#000000##FFFFFF
##21125F1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002838
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21125f;
/* rgb */ color: rgb(33, 18, 95);
/* oklch */ color: oklch(26.5% 0.127 282.4);
Tailwind
colors: {
  custom: {
    50: '#66528d',
    500: '#21125f',
    950: '#000000',
  },
}
SCSS
$custom: #21125f;
$custom-light: #66528d;
$custom-dark: #000000;
JSON
{
  "hex": "#21125f",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 251.688,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26473,
    "c": 0.12658,
    "h": 282.4
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#21125F
secondary
#849736
accent
#EB3DC9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21125F

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

Preview Lab → · Contrast checker → · Palette generator →

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