#5D2FB5#5D2FB5

#5D2FB5 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.196 H 292.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5D2FB5
RGBrgb(93, 47, 181)
HSLhsl(261, 59%, 45%)
HSVhsv(261, 74%, 71%)
CMYKcmyk(48.6%, 74%, 0%, 29%)
CIE-LABlab(33.34, 50.55, -63.31)
CIE-LCHlch(33.34, 81.02, 308.61°)
OKLaboklab(44.8% 0.0743 -0.1816)
OKLCHoklch(44.8% 0.196 292.2)
XYZxyz(13.8689, 7.6959, 44.4618)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FB5 #87B52F
analogous
#2F44B5 #5D2FB5 #A02FB5
triadic
#5D2FB5 #B55D2F #2FB55D
tetradic
#5D2FB5 #B52F44 #87B52F #2FB5A0
square
#5D2FB5 #B52F44 #87B52F #2FB5A0
split-complementary
#5D2FB5 #B5A02F #44B52F
monochromatic
#2B1654 #442284 #5D2FB5 #7C50D1 #A180DE

Accessibility & contrast

On white

8.27
#5D2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5D2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FB5
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FB5#FFFFFF#000000##FFFFFF
##5D2FB51.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#415370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d2fb5;
/* rgb */ color: rgb(93, 47, 181);
/* oklch */ color: oklch(44.8% 0.196 292.2);
Tailwind
colors: {
  custom: {
    50: '#936ccc',
    500: '#5d2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fb5;
$custom-light: #936ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fb5",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 260.597,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44796,
    "c": 0.19624,
    "h": 292.2
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#5D2FB5
secondary
#ACC779
accent
#E246AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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