#20125C#20125C

#20125C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.123 H 282.4°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#20125C
RGBrgb(32, 18, 92)
HSLhsl(251, 67%, 22%)
HSVhsv(251, 80%, 36%)
CMYKcmyk(65.2%, 80.4%, 0%, 63.9%)
CIE-LABlab(12.69, 29.73, -41.58)
CIE-LCHlch(12.69, 51.12, 305.56°)
OKLaboklab(26.04% 0.0264 -0.1199)
OKLCHoklch(26.04% 0.123 282.4)
XYZxyz(2.7431, 1.5122, 10.2705)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20125C #4E5C12
analogous
#12295C #20125C #45125C
triadic
#20125C #5C2012 #125C20
tetradic
#20125C #5C1229 #4E5C12 #125C45
square
#20125C #5C1229 #4E5C12 #125C45
split-complementary
#20125C #5C4512 #295C12
monochromatic
#09051A #0E0829 #20125C #321C8F #4426C2

Accessibility & contrast

On white

16.12
#20125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20125C
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20125C#FFFFFF#000000##FFFFFF
##20125C1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #20125c;
/* rgb */ color: rgb(32, 18, 92);
/* oklch */ color: oklch(26.0% 0.123 282.4);
Tailwind
colors: {
  custom: {
    50: '#64528b',
    500: '#20125c',
    950: '#000000',
  },
}
SCSS
$custom: #20125c;
$custom-light: #64528b;
$custom-dark: #000000;
JSON
{
  "hex": "#20125c",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 251.351,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26042,
    "c": 0.12276,
    "h": 282.4
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#20125C
secondary
#829435
accent
#EA3ECA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20125C

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

Preview Lab → · Contrast checker → · Palette generator →

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