#5D3DCB#5D3DCB

#5D3DCB is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.5% C 0.206 H 286.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5D3DCB
RGBrgb(93, 61, 203)
HSLhsl(254, 58%, 52%)
HSVhsv(254, 70%, 80%)
CMYKcmyk(54.2%, 70%, 0%, 20.4%)
CIE-LABlab(37.80, 49.60, -68.92)
CIE-LCHlch(37.80, 84.91, 305.74°)
OKLaboklab(48.54% 0.0576 -0.1982)
OKLCHoklch(48.54% 0.206 286.2)
XYZxyz(16.9592, 9.9755, 57.5202)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DCB #ABCB3D
analogous
#3D64CB #5D3DCB #A43DCB
triadic
#5D3DCB #CB5D3D #3DCB5D
tetradic
#5D3DCB #CB3D64 #ABCB3D #3DCBA4
square
#5D3DCB #CB3D64 #ABCB3D #3DCBA4
split-complementary
#5D3DCB #CBA43D #64CB3D
monochromatic
#301E70 #452BA0 #5D3DCB #856DD8 #AE9EE5

Accessibility & contrast

On white

7.01
#5D3DCB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5D3DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3DCB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DCB#FFFFFF#000000##FFFFFF
##5D3DCB1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#2E6280
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d3dcb;
/* rgb */ color: rgb(93, 61, 203);
/* oklch */ color: oklch(48.5% 0.206 286.2);
Tailwind
colors: {
  custom: {
    50: '#9675dc',
    500: '#5d3dcb',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dcb;
$custom-light: #9675dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dcb",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 203
  },
  "hsl": {
    "h": 253.521,
    "s": 57.724,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48543,
    "c": 0.20638,
    "h": 286.2
  },
  "luminance": 0.09976
}

Semantic roles & 50–950 ramp

primary
#5D3DCB
secondary
#C3D193
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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