#5A34AF#5A34AF

#5A34AF is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.184 H 291.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5A34AF
RGBrgb(90, 52, 175)
HSLhsl(259, 54%, 45%)
HSVhsv(259, 70%, 69%)
CMYKcmyk(48.6%, 70.3%, 0%, 31.4%)
CIE-LABlab(33.40, 45.86, -59.65)
CIE-LCHlch(33.40, 75.24, 307.55°)
OKLaboklab(44.6% 0.0666 -0.171)
OKLCHoklch(44.6% 0.184 291.3)
XYZxyz(13.1801, 7.7243, 41.3456)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34AF #89AF34
analogous
#344BAF #5A34AF #9834AF
triadic
#5A34AF #AF5A34 #34AF5A
tetradic
#5A34AF #AF344B #89AF34 #34AF98
square
#5A34AF #AF344B #89AF34 #34AF98
split-complementary
#5A34AF #AF9834 #4BAF34
monochromatic
#291851 #422680 #5A34AF #7954CC #9E83DA

Accessibility & contrast

On white

8.25
#5A34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5A34AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34AF
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34AF#FFFFFF#000000##FFFFFF
##5A34AF1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#3F536E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a34af;
/* rgb */ color: rgb(90, 52, 175);
/* oklch */ color: oklch(44.6% 0.184 291.3);
Tailwind
colors: {
  custom: {
    50: '#906fc8',
    500: '#5a34af',
    950: '#000000',
  },
}
SCSS
$custom: #5a34af;
$custom-light: #906fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34af",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 258.537,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44604,
    "c": 0.18356,
    "h": 291.3
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#5A34AF
secondary
#ADC47B
accent
#DE4AB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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