#21125A#21125A

#21125A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.120 H 283.8°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#21125A
RGBrgb(33, 18, 90)
HSLhsl(253, 67%, 21%)
HSVhsv(253, 80%, 35%)
CMYKcmyk(63.3%, 80%, 0%, 64.7%)
CIE-LABlab(12.57, 29.20, -40.42)
CIE-LCHlch(12.57, 49.87, 305.84°)
OKLaboklab(25.92% 0.0286 -0.1165)
OKLCHoklch(25.92% 0.12 283.8)
XYZxyz(2.6884, 1.4940, 9.8176)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21125A #4B5A12
analogous
#12275A #21125A #45125A
triadic
#21125A #5A2112 #125A21
tetradic
#21125A #5A1227 #4B5A12 #125A45
square
#21125A #5A1227 #4B5A12 #125A45
split-complementary
#21125A #5A4512 #275A12
monochromatic
#09051A #0E0827 #21125A #341C8D #4626C0

Accessibility & contrast

On white

16.17
#21125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21125A
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21125A#FFFFFF#000000##FFFFFF
##21125A1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001E59
Tritanopia (blue-blind)
#012635
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #21125a;
/* rgb */ color: rgb(33, 18, 90);
/* oklch */ color: oklch(25.9% 0.120 283.8);
Tailwind
colors: {
  custom: {
    50: '#655289',
    500: '#21125a',
    950: '#000000',
  },
}
SCSS
$custom: #21125a;
$custom-light: #655289;
$custom-dark: #000000;
JSON
{
  "hex": "#21125a",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 252.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2592,
    "c": 0.11993,
    "h": 283.8
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#21125A
secondary
#7F9335
accent
#EA3EC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21125A

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

Preview Lab → · Contrast checker → · Palette generator →

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