#5D2FD3#5D2FD3

#5D2FD3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.230 H 286.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5D2FD3
RGBrgb(93, 47, 211)
HSLhsl(257, 65%, 51%)
HSVhsv(257, 78%, 83%)
CMYKcmyk(55.9%, 77.7%, 0%, 17.3%)
CIE-LABlab(36.10, 58.69, -76.34)
CIE-LCHlch(36.10, 96.29, 307.55°)
OKLaboklab(47.57% 0.0662 -0.2198)
OKLCHoklch(47.57% 0.23 286.8)
XYZxyz(17.2851, 9.0624, 62.4538)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FD3 #A5D32F
analogous
#2F53D3 #5D2FD3 #AF2FD3
triadic
#5D2FD3 #D35D2F #2FD35D
tetradic
#5D2FD3 #D32F53 #A5D32F #2FD3AF
square
#5D2FD3 #D32F53 #A5D32F #2FD3AF
split-complementary
#5D2FD3 #D3AF2F #53D32F
monochromatic
#301870 #4622A2 #5D2FD3 #8462DE #AC94E8

Accessibility & contrast

On white

7.47
#5D2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5D2FD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FD3
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FD3#FFFFFF#000000##FFFFFF
##5D2FD31.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D8
Deuteranopia (green-blind)
#0050D0
Tritanopia (blue-blind)
#255F81
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d2fd3;
/* rgb */ color: rgb(93, 47, 211);
/* oklch */ color: oklch(47.6% 0.230 286.8);
Tailwind
colors: {
  custom: {
    50: '#986ee2',
    500: '#5d2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fd3;
$custom-light: #986ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fd3",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 256.829,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4757,
    "c": 0.22953,
    "h": 286.8
  },
  "luminance": 0.09063
}

Semantic roles & 50–950 ramp

primary
#5D2FD3
secondary
#BFD38A
accent
#E840B9
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5D2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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