#20125A#20125A

#20125A is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.8% C 0.120 H 282.9°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#20125A
RGBrgb(32, 18, 90)
HSLhsl(252, 67%, 21%)
HSVhsv(252, 80%, 35%)
CMYKcmyk(64.4%, 80%, 0%, 64.7%)
CIE-LABlab(12.47, 29.05, -40.60)
CIE-LCHlch(12.47, 49.92, 305.58°)
OKLaboklab(25.82% 0.0269 -0.117)
OKLCHoklch(25.82% 0.12 282.9)
XYZxyz(2.6569, 1.4777, 9.8161)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20125A #4C5A12
analogous
#12285A #20125A #44125A
triadic
#20125A #5A2012 #125A20
tetradic
#20125A #5A1228 #4C5A12 #125A44
square
#20125A #5A1228 #4C5A12 #125A44
split-complementary
#20125A #5A4412 #285A12
monochromatic
#09051A #0E0827 #20125A #321C8D #4426C0

Accessibility & contrast

On white

16.21
#20125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20125A
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20125A#FFFFFF#000000##FFFFFF
##20125A1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20125a;
/* rgb */ color: rgb(32, 18, 90);
/* oklch */ color: oklch(25.8% 0.120 282.9);
Tailwind
colors: {
  custom: {
    50: '#645289',
    500: '#20125a',
    950: '#000000',
  },
}
SCSS
$custom: #20125a;
$custom-light: #645289;
$custom-dark: #000000;
JSON
{
  "hex": "#20125a",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 251.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25821,
    "c": 0.12008,
    "h": 282.9
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#20125A
secondary
#809335
accent
#EA3EC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20125A

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

Preview Lab → · Contrast checker → · Palette generator →

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