#5D3DC9#5D3DC9

#5D3DC9 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.204 H 286.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5D3DC9
RGBrgb(93, 61, 201)
HSLhsl(254, 56%, 51%)
HSVhsv(254, 70%, 79%)
CMYKcmyk(53.7%, 69.7%, 0%, 21.2%)
CIE-LABlab(37.63, 49.02, -68.04)
CIE-LCHlch(37.63, 83.86, 305.77°)
OKLaboklab(48.37% 0.058 -0.1956)
OKLCHoklch(48.37% 0.204 286.5)
XYZxyz(16.7224, 9.8808, 56.2731)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DC9 #A9C93D
analogous
#3D63C9 #5D3DC9 #A33DC9
triadic
#5D3DC9 #C95D3D #3DC95D
tetradic
#5D3DC9 #C93D63 #A9C93D #3DC9A3
square
#5D3DC9 #C93D63 #A9C93D #3DC9A3
split-complementary
#5D3DC9 #C9A33D #63C93D
monochromatic
#301E6D #462C9D #5D3DC9 #856DD6 #AD9DE4

Accessibility & contrast

On white

7.06
#5D3DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5D3DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DC9
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DC9#FFFFFF#000000##FFFFFF
##5D3DC91.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#0054C6
Tritanopia (blue-blind)
#30627E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d3dc9;
/* rgb */ color: rgb(93, 61, 201);
/* oklch */ color: oklch(48.4% 0.204 286.5);
Tailwind
colors: {
  custom: {
    50: '#9575db',
    500: '#5d3dc9',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dc9;
$custom-light: #9575db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dc9",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 201
  },
  "hsl": {
    "h": 253.714,
    "s": 56.452,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48369,
    "c": 0.20401,
    "h": 286.5
  },
  "luminance": 0.09882
}

Semantic roles & 50–950 ramp

primary
#5D3DC9
secondary
#C2D092
accent
#E048BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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