#5A3DAF#5A3DAF

#5A3DAF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.172 H 289.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5A3DAF
RGBrgb(90, 61, 175)
HSLhsl(255, 48%, 46%)
HSVhsv(255, 65%, 69%)
CMYKcmyk(48.6%, 65.1%, 0%, 31.4%)
CIE-LABlab(35.21, 40.90, -56.70)
CIE-LCHlch(35.21, 69.91, 305.81°)
OKLaboklab(45.91% 0.0576 -0.1624)
OKLCHoklch(45.91% 0.172 289.5)
XYZxyz(13.6208, 8.6057, 41.4925)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DAF #92AF3D
analogous
#3D59AF #5A3DAF #933DAF
triadic
#5A3DAF #AF5A3D #3DAF5A
tetradic
#5A3DAF #AF3D59 #92AF3D #3DAF93
square
#5A3DAF #AF3D59 #92AF3D #3DAF93
split-complementary
#5A3DAF #AF933D #59AF3D
monochromatic
#2B1D54 #432D82 #5A3DAF #7B61C8 #A18FD8

Accessibility & contrast

On white

7.72
#5A3DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5A3DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DAF
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DAF#FFFFFF#000000##FFFFFF
##5A3DAF1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#3E5870
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3daf;
/* rgb */ color: rgb(90, 61, 175);
/* oklch */ color: oklch(45.9% 0.172 289.5);
Tailwind
colors: {
  custom: {
    50: '#9074c8',
    500: '#5a3daf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3daf;
$custom-light: #9074c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3daf",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 255.263,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45905,
    "c": 0.17231,
    "h": 289.5
  },
  "luminance": 0.08606
}

Semantic roles & 50–950 ramp

primary
#5A3DAF
secondary
#B3C385
accent
#D850B5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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