#5C0F8E#5C0F8E

#5C0F8E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.185 H 305.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#5C0F8E
RGBrgb(92, 15, 142)
HSLhsl(276, 81%, 31%)
HSVhsv(276, 89%, 56%)
CMYKcmyk(35.2%, 89.4%, 0%, 44.3%)
CIE-LABlab(25.47, 53.00, -52.53)
CIE-LCHlch(25.47, 74.62, 315.26°)
OKLaboklab(38.21% 0.1084 -0.1498)
OKLCHoklch(38.21% 0.185 305.9)
XYZxyz(9.4658, 4.5700, 25.9694)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C0F8E #418E0F
analogous
#1C0F8E #5C0F8E #8E0F80
triadic
#5C0F8E #8E5C0F #0F8E5C
tetradic
#5C0F8E #8E1C0F #418E0F #0F808E
square
#5C0F8E #8E1C0F #418E0F #0F808E
split-complementary
#5C0F8E #808E0F #0F8E1C
monochromatic
#14031F #380957 #5C0F8E #8015C5 #A02EE9

Accessibility & contrast

On white

10.97
#5C0F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C0F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C0F8E
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C0F8E#FFFFFF#000000##FFFFFF
##5C0F8E1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#533553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c0f8e;
/* rgb */ color: rgb(92, 15, 142);
/* oklch */ color: oklch(38.2% 0.185 305.9);
Tailwind
colors: {
  custom: {
    50: '#905cb0',
    500: '#5c0f8e',
    950: '#000000',
  },
}
SCSS
$custom: #5c0f8e;
$custom-light: #905cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c0f8e",
  "rgb": {
    "r": 92,
    "g": 15,
    "b": 142
  },
  "hsl": {
    "h": 276.378,
    "s": 80.892,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38213,
    "c": 0.18491,
    "h": 305.9
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#5C0F8E
secondary
#6DC336
accent
#F7317F
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C0F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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