#5B39AF#5B39AF

#5B39AF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.177 H 290.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5B39AF
RGBrgb(91, 57, 175)
HSLhsl(257, 51%, 45%)
HSVhsv(257, 67%, 69%)
CMYKcmyk(48%, 67.4%, 0%, 31.4%)
CIE-LABlab(34.49, 43.34, -57.88)
CIE-LCHlch(34.49, 72.31, 306.83°)
OKLaboklab(45.41% 0.0632 -0.1658)
OKLCHoklch(45.41% 0.177 290.9)
XYZxyz(13.5132, 8.2450, 41.4286)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39AF #8DAF39
analogous
#3952AF #5B39AF #9639AF
triadic
#5B39AF #AF5B39 #39AF5B
tetradic
#5B39AF #AF3952 #8DAF39 #39AF96
square
#5B39AF #AF3952 #8DAF39 #39AF96
split-complementary
#5B39AF #AF9639 #52AF39
monochromatic
#2B1B53 #432A81 #5B39AF #7B5BCA #A08AD9

Accessibility & contrast

On white

7.93
#5B39AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B39AF
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39AF#FFFFFF#000000##FFFFFF
##5B39AF1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b39af;
/* rgb */ color: rgb(91, 57, 175);
/* oklch */ color: oklch(45.4% 0.177 290.9);
Tailwind
colors: {
  custom: {
    50: '#9172c8',
    500: '#5b39af',
    950: '#000000',
  },
}
SCSS
$custom: #5b39af;
$custom-light: #9172c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39af",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 257.288,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45406,
    "c": 0.17743,
    "h": 290.9
  },
  "luminance": 0.08246
}

Semantic roles & 50–950 ramp

primary
#5B39AF
secondary
#B0C381
accent
#DA4DB2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B39AF

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

Preview Lab → · Contrast checker → · Palette generator →

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