#5F0C54#5F0C54

#5F0C54 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.139 H 334.6°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#5F0C54
RGBrgb(95, 12, 84)
HSLhsl(308, 78%, 21%)
HSVhsv(308, 87%, 37%)
CMYKcmyk(0%, 87.4%, 11.6%, 62.7%)
CIE-LABlab(21.34, 42.99, -21.72)
CIE-LCHlch(21.34, 48.17, 333.19°)
OKLaboklab(34.05% 0.1254 -0.0595)
OKLCHoklch(34.05% 0.139 334.6)
XYZxyz(6.4511, 3.3365, 8.6900)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C54 #0C5F17
analogous
#400C5F #5F0C54 #5F0C2A
triadic
#5F0C54 #545F0C #0C545F
tetradic
#5F0C54 #5F400C #0C5F17 #0C2A5F
square
#5F0C54 #5F400C #0C5F17 #0C2A5F
split-complementary
#5F0C54 #2A5F0C #0C5F40
monochromatic
#1B0318 #290524 #5F0C54 #951384 #CC1AB4

Accessibility & contrast

On white

12.60
#5F0C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5F0C54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0C54
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C54#FFFFFF#000000##FFFFFF
##5F0C541.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2C56
Deuteranopia (green-blind)
#2C3752
Tritanopia (blue-blind)
#641530
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f0c54;
/* rgb */ color: rgb(95, 12, 84);
/* oklch */ color: oklch(34.0% 0.139 334.6);
Tailwind
colors: {
  custom: {
    50: '#905884',
    500: '#5f0c54',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c54;
$custom-light: #905884;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c54",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 84
  },
  "hsl": {
    "h": 307.952,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.34046,
    "c": 0.13877,
    "h": 334.6
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#5F0C54
secondary
#2D993C
accent
#F44D34
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0C54

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

Preview Lab → · Contrast checker → · Palette generator →

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