#5C0F5A#5C0F5A

#5C0F5A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.139 H 329.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#5C0F5A
RGBrgb(92, 15, 90)
HSLhsl(302, 72%, 21%)
HSVhsv(302, 84%, 36%)
CMYKcmyk(0%, 83.7%, 2.2%, 63.9%)
CIE-LABlab(21.42, 42.46, -25.67)
CIE-LCHlch(21.42, 49.61, 328.85°)
OKLaboklab(34.1% 0.1196 -0.071)
OKLCHoklch(34.1% 0.139 329.3)
XYZxyz(6.4299, 3.3556, 9.9799)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C0F5A #0F5C11
analogous
#370F5C #5C0F5A #5C0F33
triadic
#5C0F5A #5A5C0F #0F5A5C
tetradic
#5C0F5A #5C370F #0F5C11 #0F335C
square
#5C0F5A #5C370F #0F5C11 #0F335C
split-complementary
#5C0F5A #335C0F #0F5C37
monochromatic
#1A041A #270627 #5C0F5A #91188D #C520C1

Accessibility & contrast

On white

12.57
#5C0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C0F5A
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C0F5A#FFFFFF#000000##FFFFFF
##5C0F5A1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5C
Deuteranopia (green-blind)
#273758
Tritanopia (blue-blind)
#601B34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c0f5a;
/* rgb */ color: rgb(92, 15, 90);
/* oklch */ color: oklch(34.1% 0.139 329.3);
Tailwind
colors: {
  custom: {
    50: '#8d5889',
    500: '#5c0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #5c0f5a;
$custom-light: #8d5889;
$custom-dark: #000000;
JSON
{
  "hex": "#5c0f5a",
  "rgb": {
    "r": 92,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 301.558,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.34104,
    "c": 0.1391,
    "h": 329.3
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#5C0F5A
secondary
#319534
accent
#EF3E39
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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