#5C0F56#5C0F56

#5C0F56 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.136 H 331.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#5C0F56
RGBrgb(92, 15, 86)
HSLhsl(305, 72%, 21%)
HSVhsv(305, 84%, 36%)
CMYKcmyk(0%, 83.7%, 6.5%, 63.9%)
CIE-LABlab(21.17, 41.76, -23.38)
CIE-LCHlch(21.17, 47.86, 330.75°)
OKLaboklab(33.85% 0.1196 -0.0644)
OKLCHoklch(33.85% 0.136 331.7)
XYZxyz(6.2642, 3.2894, 9.1073)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C0F56 #0F5C15
analogous
#3B0F5C #5C0F56 #5C0F2F
triadic
#5C0F56 #565C0F #0F565C
tetradic
#5C0F56 #5C3B0F #0F5C15 #0F2F5C
square
#5C0F56 #5C3B0F #0F5C15 #0F2F5C
split-complementary
#5C0F56 #2F5C0F #0F5C3B
monochromatic
#1A0419 #270625 #5C0F56 #911887 #C520B8

Accessibility & contrast

On white

12.67
#5C0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5C0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C0F56
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C0F56#FFFFFF#000000##FFFFFF
##5C0F561.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072C58
Deuteranopia (green-blind)
#293754
Tritanopia (blue-blind)
#601932
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c0f56;
/* rgb */ color: rgb(92, 15, 86);
/* oklch */ color: oklch(33.8% 0.136 331.7);
Tailwind
colors: {
  custom: {
    50: '#8d5886',
    500: '#5c0f56',
    950: '#000000',
  },
}
SCSS
$custom: #5c0f56;
$custom-light: #8d5886;
$custom-dark: #000000;
JSON
{
  "hex": "#5c0f56",
  "rgb": {
    "r": 92,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 304.675,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33847,
    "c": 0.13586,
    "h": 331.7
  },
  "luminance": 0.03289
}

Semantic roles & 50–950 ramp

primary
#5C0F56
secondary
#319539
accent
#EF4739
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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