#20125D#20125D

#20125D is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.124 H 282.1°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#20125D
RGBrgb(32, 18, 93)
HSLhsl(251, 68%, 22%)
HSVhsv(251, 81%, 36%)
CMYKcmyk(65.6%, 80.6%, 0%, 63.5%)
CIE-LABlab(12.80, 30.06, -42.07)
CIE-LCHlch(12.80, 51.71, 305.55°)
OKLaboklab(26.15% 0.0261 -0.1213)
OKLCHoklch(26.15% 0.124 282.1)
XYZxyz(2.7871, 1.5298, 10.5022)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20125D #4F5D12
analogous
#122A5D #20125D #46125D
triadic
#20125D #5D2012 #125D20
tetradic
#20125D #5D122A #4F5D12 #125D46
square
#20125D #5D122A #4F5D12 #125D46
split-complementary
#20125D #5D4612 #2A5D12
monochromatic
#09051A #0E082A #20125D #321C90 #4326C4

Accessibility & contrast

On white

16.08
#20125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#20125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20125D
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20125D#FFFFFF#000000##FFFFFF
##20125D1.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)
#00245F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #20125d;
/* rgb */ color: rgb(32, 18, 93);
/* oklch */ color: oklch(26.2% 0.124 282.1);
Tailwind
colors: {
  custom: {
    50: '#65528c',
    500: '#20125d',
    950: '#000000',
  },
}
SCSS
$custom: #20125d;
$custom-light: #65528c;
$custom-dark: #000000;
JSON
{
  "hex": "#20125d",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 251.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26154,
    "c": 0.1241,
    "h": 282.1
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#20125D
secondary
#839535
accent
#EA3DCA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20125D

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

Preview Lab → · Contrast checker → · Palette generator →

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