#5D0F8E#5D0F8E

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

Color values

HEX#5D0F8E
RGBrgb(93, 15, 142)
HSLhsl(277, 81%, 31%)
HSVhsv(277, 89%, 56%)
CMYKcmyk(34.5%, 89.4%, 0%, 44.3%)
CIE-LABlab(25.63, 53.14, -52.26)
CIE-LCHlch(25.63, 74.54, 315.48°)
OKLaboklab(38.35% 0.1099 -0.149)
OKLCHoklch(38.35% 0.185 306.4)
XYZxyz(9.5664, 4.6219, 25.9741)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D0F8E #408E0F
analogous
#1D0F8E #5D0F8E #8E0F7F
triadic
#5D0F8E #8E5D0F #0F8E5D
tetradic
#5D0F8E #8E1D0F #408E0F #0F7F8E
square
#5D0F8E #8E1D0F #408E0F #0F7F8E
split-complementary
#5D0F8E #7F8E0F #0F8E1D
monochromatic
#14031F #390957 #5D0F8E #8115C5 #A12EE9

Accessibility & contrast

On white

10.91
#5D0F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D0F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D0F8E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D0F8E#FFFFFF#000000##FFFFFF
##5D0F8E1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#543553
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d0f8e;
/* rgb */ color: rgb(93, 15, 142);
/* oklch */ color: oklch(38.4% 0.185 306.4);
Tailwind
colors: {
  custom: {
    50: '#915cb0',
    500: '#5d0f8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d0f8e;
$custom-light: #915cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d0f8e",
  "rgb": {
    "r": 93,
    "g": 15,
    "b": 142
  },
  "hsl": {
    "h": 276.85,
    "s": 80.892,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.18514,
    "h": 306.4
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#5D0F8E
secondary
#6CC336
accent
#F7317D
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D0F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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