#5D39AF#5D39AF

#5D39AF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.177 H 291.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5D39AF
RGBrgb(93, 57, 175)
HSLhsl(258, 51%, 45%)
HSVhsv(258, 67%, 69%)
CMYKcmyk(46.9%, 67.4%, 0%, 31.4%)
CIE-LABlab(34.70, 43.72, -57.53)
CIE-LCHlch(34.70, 72.25, 307.23°)
OKLaboklab(45.61% 0.066 -0.1647)
OKLCHoklch(45.61% 0.177 291.8)
XYZxyz(13.7130, 8.3481, 41.4379)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39AF #8BAF39
analogous
#3950AF #5D39AF #9839AF
triadic
#5D39AF #AF5D39 #39AF5D
tetradic
#5D39AF #AF3950 #8BAF39 #39AF98
square
#5D39AF #AF3950 #8BAF39 #39AF98
split-complementary
#5D39AF #AF9839 #50AF39
monochromatic
#2C1B53 #442A81 #5D39AF #7D5BCA #A28AD9

Accessibility & contrast

On white

7.87
#5D39AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5D39AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39AF
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39AF#FFFFFF#000000##FFFFFF
##5D39AF1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#44566F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d39af;
/* rgb */ color: rgb(93, 57, 175);
/* oklch */ color: oklch(45.6% 0.177 291.8);
Tailwind
colors: {
  custom: {
    50: '#9272c8',
    500: '#5d39af',
    950: '#000000',
  },
}
SCSS
$custom: #5d39af;
$custom-light: #9272c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39af",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 258.305,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45606,
    "c": 0.17744,
    "h": 291.8
  },
  "luminance": 0.08349
}

Semantic roles & 50–950 ramp

primary
#5D39AF
secondary
#AFC381
accent
#DA4DAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D39AF

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

Preview Lab → · Contrast checker → · Palette generator →

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