#20125E#20125E

#20125E is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.125 H 281.9°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#20125E
RGBrgb(32, 18, 94)
HSLhsl(251, 68%, 22%)
HSVhsv(251, 81%, 37%)
CMYKcmyk(66%, 80.9%, 0%, 63.1%)
CIE-LABlab(12.91, 30.40, -42.56)
CIE-LCHlch(12.91, 52.30, 305.54°)
OKLaboklab(26.27% 0.0258 -0.1227)
OKLCHoklch(26.27% 0.125 281.9)
XYZxyz(2.8317, 1.5476, 10.7370)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20125E #505E12
analogous
#122A5E #20125E #46125E
triadic
#20125E #5E2012 #125E20
tetradic
#20125E #5E122A #505E12 #125E46
square
#20125E #5E122A #505E12 #125E46
split-complementary
#20125E #5E4612 #2A5E12
monochromatic
#09051A #0F082B #20125E #311C91 #4326C5

Accessibility & contrast

On white

16.04
#20125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20125E
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20125E#FFFFFF#000000##FFFFFF
##20125E1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #20125e;
/* rgb */ color: rgb(32, 18, 94);
/* oklch */ color: oklch(26.3% 0.125 281.9);
Tailwind
colors: {
  custom: {
    50: '#65528d',
    500: '#20125e',
    950: '#000000',
  },
}
SCSS
$custom: #20125e;
$custom-light: #65528d;
$custom-dark: #000000;
JSON
{
  "hex": "#20125e",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 251.053,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26265,
    "c": 0.12543,
    "h": 281.9
  },
  "luminance": 0.01548
}

Semantic roles & 50–950 ramp

primary
#20125E
secondary
#849635
accent
#EB3DCB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20125E

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

Preview Lab → · Contrast checker → · Palette generator →

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