#20125B#20125B

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

Color values

HEX#20125B
RGBrgb(32, 18, 91)
HSLhsl(252, 67%, 21%)
HSVhsv(252, 80%, 36%)
CMYKcmyk(64.8%, 80.2%, 0%, 64.3%)
CIE-LABlab(12.57, 29.39, -41.09)
CIE-LCHlch(12.57, 50.52, 305.57°)
OKLaboklab(25.93% 0.0266 -0.1185)
OKLCHoklch(25.93% 0.121 282.7)
XYZxyz(2.6997, 1.4948, 10.0418)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20125B #4D5B12
analogous
#12295B #20125B #45125B
triadic
#20125B #5B2012 #125B20
tetradic
#20125B #5B1229 #4D5B12 #125B45
square
#20125B #5B1229 #4D5B12 #125B45
split-complementary
#20125B #5B4512 #295B12
monochromatic
#09051A #0E0828 #20125B #321C8E #4426C1

Accessibility & contrast

On white

16.17
#20125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20125B
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20125B#FFFFFF#000000##FFFFFF
##20125B1.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)
#00235D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #20125b;
/* rgb */ color: rgb(32, 18, 91);
/* oklch */ color: oklch(25.9% 0.121 282.7);
Tailwind
colors: {
  custom: {
    50: '#64528a',
    500: '#20125b',
    950: '#000000',
  },
}
SCSS
$custom: #20125b;
$custom-light: #64528a;
$custom-dark: #000000;
JSON
{
  "hex": "#20125b",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 251.507,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25931,
    "c": 0.12143,
    "h": 282.7
  },
  "luminance": 0.01495
}

Semantic roles & 50–950 ramp

primary
#20125B
secondary
#819335
accent
#EA3EC9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20125B

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

Preview Lab → · Contrast checker → · Palette generator →

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