#5D38AB#5D38AB

#5D38AB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.174 H 292.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5D38AB
RGBrgb(93, 56, 171)
HSLhsl(259, 51%, 45%)
HSVhsv(259, 67%, 67%)
CMYKcmyk(45.6%, 67.3%, 0%, 32.9%)
CIE-LABlab(34.18, 43.14, -55.98)
CIE-LCHlch(34.18, 70.67, 307.62°)
OKLaboklab(45.14% 0.0676 -0.1602)
OKLCHoklch(45.14% 0.174 292.9)
XYZxyz(13.2770, 8.0954, 39.3832)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38AB #86AB38
analogous
#384DAB #5D38AB #9738AB
triadic
#5D38AB #AB5D38 #38AB5D
tetradic
#5D38AB #AB384D #86AB38 #38AB97
square
#5D38AB #AB384D #86AB38 #38AB97
split-complementary
#5D38AB #AB9738 #4DAB38
monochromatic
#2B1A4F #44297D #5D38AB #7C58C8 #A086D7

Accessibility & contrast

On white

8.02
#5D38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5D38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38AB
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38AB#FFFFFF#000000##FFFFFF
##5D38AB1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#46546D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d38ab;
/* rgb */ color: rgb(93, 56, 171);
/* oklch */ color: oklch(45.1% 0.174 292.9);
Tailwind
colors: {
  custom: {
    50: '#9171c5',
    500: '#5d38ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d38ab;
$custom-light: #9171c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38ab",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 259.304,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45135,
    "c": 0.17385,
    "h": 292.9
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#5D38AB
secondary
#ABC17D
accent
#DA4EAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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