#5C0F5C#5C0F5C

#5C0F5C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.141 H 328.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#5C0F5C
RGBrgb(92, 15, 92)
HSLhsl(300, 72%, 21%)
HSVhsv(300, 84%, 36%)
CMYKcmyk(0%, 83.7%, 0%, 63.9%)
CIE-LABlab(21.54, 42.81, -26.79)
CIE-LCHlch(21.54, 50.51, 327.96°)
OKLaboklab(34.24% 0.1195 -0.0743)
OKLCHoklch(34.24% 0.141 328.1)
XYZxyz(6.5161, 3.3902, 10.4343)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C0F5C #0F5C0F
analogous
#350F5C #5C0F5C #5C0F35
triadic
#5C0F5C #5C5C0F #0F5C5C
tetradic
#5C0F5C #5C350F #0F5C0F #0F355C
square
#5C0F5C #5C350F #0F5C0F #0F355C
split-complementary
#5C0F5C #355C0F #0F5C35
monochromatic
#1A041A #270627 #5C0F5C #911891 #C520C5

Accessibility & contrast

On white

12.51
#5C0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5C0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C0F5C
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C0F5C#FFFFFF#000000##FFFFFF
##5C0F5C1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#26375A
Tritanopia (blue-blind)
#5F1C36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c0f5c;
/* rgb */ color: rgb(92, 15, 92);
/* oklch */ color: oklch(34.2% 0.141 328.1);
Tailwind
colors: {
  custom: {
    50: '#8d598a',
    500: '#5c0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #5c0f5c;
$custom-light: #8d598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c0f5c",
  "rgb": {
    "r": 92,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 300,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.34236,
    "c": 0.14076,
    "h": 328.1
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#5C0F5C
secondary
#319531
accent
#EF3939
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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