#5F12A1#5F12A1

#5F12A1 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.5% C 0.201 H 301.2°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5F12A1
RGBrgb(95, 18, 161)
HSLhsl(272, 80%, 35%)
HSVhsv(272, 89%, 63%)
CMYKcmyk(41%, 88.8%, 0%, 36.9%)
CIE-LABlab(27.95, 56.91, -60.13)
CIE-LCHlch(27.95, 82.79, 313.42°)
OKLaboklab(40.55% 0.1043 -0.172)
OKLCHoklch(40.55% 0.201 301.2)
XYZxyz(11.3670, 5.4386, 34.1622)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F12A1 #54A112
analogous
#1812A1 #5F12A1 #A1129B
triadic
#5F12A1 #A15F12 #12A15F
tetradic
#5F12A1 #A11812 #54A112 #129BA1
square
#5F12A1 #A11812 #54A112 #129BA1
split-complementary
#5F12A1 #9BA112 #12A118
monochromatic
#1E0633 #3F0C6A #5F12A1 #7F18D8 #9D43EA

Accessibility & contrast

On white

10.06
#5F12A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F12A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F12A1
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F12A1#FFFFFF#000000##FFFFFF
##5F12A11.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#503F5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f12a1;
/* rgb */ color: rgb(95, 18, 161);
/* oklch */ color: oklch(40.5% 0.201 301.2);
Tailwind
colors: {
  custom: {
    50: '#945ebe',
    500: '#5f12a1',
    950: '#000000',
  },
}
SCSS
$custom: #5f12a1;
$custom-light: #945ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f12a1",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 161
  },
  "hsl": {
    "h": 272.308,
    "s": 79.888,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40546,
    "c": 0.20114,
    "h": 301.2
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#5F12A1
secondary
#82CA45
accent
#F6318C
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5F12A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5F12A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva