#5A34B2#5A34B2

#5A34B2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.187 H 290.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5A34B2
RGBrgb(90, 52, 178)
HSLhsl(258, 55%, 45%)
HSVhsv(258, 71%, 70%)
CMYKcmyk(49.4%, 70.8%, 0%, 30.2%)
CIE-LABlab(33.65, 46.71, -61.03)
CIE-LCHlch(33.65, 76.85, 307.43°)
OKLaboklab(44.86% 0.0661 -0.1751)
OKLCHoklch(44.86% 0.187 290.7)
XYZxyz(13.4780, 7.8435, 42.9146)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34B2 #8CB234
analogous
#344DB2 #5A34B2 #9934B2
triadic
#5A34B2 #B25A34 #34B25A
tetradic
#5A34B2 #B2344D #8CB234 #34B299
square
#5A34B2 #B2344D #8CB234 #34B299
split-complementary
#5A34B2 #B29934 #4DB234
monochromatic
#2A1853 #422683 #5A34B2 #7A56CE #9F85DB

Accessibility & contrast

On white

8.18
#5A34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5A34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34B2
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34B2#FFFFFF#000000##FFFFFF
##5A34B21.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#3D546F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a34b2;
/* rgb */ color: rgb(90, 52, 178);
/* oklch */ color: oklch(44.9% 0.187 290.7);
Tailwind
colors: {
  custom: {
    50: '#916fca',
    500: '#5a34b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a34b2;
$custom-light: #916fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34b2",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 258.095,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44862,
    "c": 0.18712,
    "h": 290.7
  },
  "luminance": 0.07844
}

Semantic roles & 50–950 ramp

primary
#5A34B2
secondary
#AFC57D
accent
#DE4AB1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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