#5D2FB9#5D2FB9

#5D2FB9 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.201 H 291.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5D2FB9
RGBrgb(93, 47, 185)
HSLhsl(260, 59%, 45%)
HSVhsv(260, 75%, 73%)
CMYKcmyk(49.7%, 74.6%, 0%, 27.5%)
CIE-LABlab(33.69, 51.64, -65.10)
CIE-LCHlch(33.69, 83.09, 308.42°)
OKLaboklab(45.15% 0.0733 -0.1869)
OKLCHoklch(45.15% 0.201 291.4)
XYZxyz(14.2852, 7.8624, 46.6544)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FB9 #8BB92F
analogous
#2F46B9 #5D2FB9 #A22FB9
triadic
#5D2FB9 #B95D2F #2FB95D
tetradic
#5D2FB9 #B92F46 #8BB92F #2FB9A2
square
#5D2FB9 #B92F46 #8BB92F #2FB9A2
split-complementary
#5D2FB9 #B9A22F #46B92F
monochromatic
#2C1657 #442388 #5D2FB9 #7D52D3 #A283DF

Accessibility & contrast

On white

8.16
#5D2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5D2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FB9
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FB9#FFFFFF#000000##FFFFFF
##5D2FB91.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#3E5472
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d2fb9;
/* rgb */ color: rgb(93, 47, 185);
/* oklch */ color: oklch(45.2% 0.201 291.4);
Tailwind
colors: {
  custom: {
    50: '#946ccf',
    500: '#5d2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fb9;
$custom-light: #946ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fb9",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 260,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45153,
    "c": 0.20075,
    "h": 291.4
  },
  "luminance": 0.07863
}

Semantic roles & 50–950 ramp

primary
#5D2FB9
secondary
#AFC97B
accent
#E345AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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