#20125F#20125F

#20125F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.127 H 281.6°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#20125F
RGBrgb(32, 18, 95)
HSLhsl(251, 68%, 22%)
HSVhsv(251, 81%, 37%)
CMYKcmyk(66.3%, 81.1%, 0%, 62.7%)
CIE-LABlab(13.02, 30.74, -43.04)
CIE-LCHlch(13.02, 52.89, 305.53°)
OKLaboklab(26.38% 0.0255 -0.1242)
OKLCHoklch(26.38% 0.127 281.6)
XYZxyz(2.8769, 1.5657, 10.9749)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20125F #515F12
analogous
#122B5F #20125F #47125F
triadic
#20125F #5F2012 #125F20
tetradic
#20125F #5F122B #515F12 #125F47
square
#20125F #5F122B #515F12 #125F47
split-complementary
#20125F #5F4712 #2B5F12
monochromatic
#09051A #0F082C #20125F #311C92 #4325C6

Accessibility & contrast

On white

15.99
#20125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20125F
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20125F#FFFFFF#000000##FFFFFF
##20125F1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002838
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20125f;
/* rgb */ color: rgb(32, 18, 95);
/* oklch */ color: oklch(26.4% 0.127 281.6);
Tailwind
colors: {
  custom: {
    50: '#65528d',
    500: '#20125f',
    950: '#000000',
  },
}
SCSS
$custom: #20125f;
$custom-light: #65528d;
$custom-dark: #000000;
JSON
{
  "hex": "#20125f",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 250.909,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26378,
    "c": 0.12675,
    "h": 281.6
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20125F

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

Preview Lab → · Contrast checker → · Palette generator →

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