#5D38AF#5D38AF

#5D38AF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.179 H 292.0°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5D38AF
RGBrgb(93, 56, 175)
HSLhsl(259, 52%, 45%)
HSVhsv(259, 68%, 69%)
CMYKcmyk(46.9%, 68%, 0%, 31.4%)
CIE-LABlab(34.50, 44.26, -57.85)
CIE-LCHlch(34.50, 72.84, 307.42°)
OKLaboklab(45.46% 0.067 -0.1657)
OKLCHoklch(45.46% 0.179 292)
XYZxyz(13.6641, 8.2502, 41.4216)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38AF #8AAF38
analogous
#384FAF #5D38AF #9838AF
triadic
#5D38AF #AF5D38 #38AF5D
tetradic
#5D38AF #AF384F #8AAF38 #38AF98
square
#5D38AF #AF384F #8AAF38 #38AF98
split-complementary
#5D38AF #AF9838 #4FAF38
monochromatic
#2C1A52 #442981 #5D38AF #7D5ACA #A188D9

Accessibility & contrast

On white

7.92
#5D38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5D38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38AF
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38AF#FFFFFF#000000##FFFFFF
##5D38AF1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d38af;
/* rgb */ color: rgb(93, 56, 175);
/* oklch */ color: oklch(45.5% 0.179 292.0);
Tailwind
colors: {
  custom: {
    50: '#9271c8',
    500: '#5d38af',
    950: '#000000',
  },
}
SCSS
$custom: #5d38af;
$custom-light: #9271c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38af",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 258.655,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45463,
    "c": 0.17871,
    "h": 292
  },
  "luminance": 0.08251
}

Semantic roles & 50–950 ramp

primary
#5D38AF
secondary
#AEC380
accent
#DB4DAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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