#5A3BC8#5A3BC8

#5A3BC8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.7% C 0.205 H 285.7°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5A3BC8
RGBrgb(90, 59, 200)
HSLhsl(253, 56%, 51%)
HSVhsv(253, 71%, 78%)
CMYKcmyk(55%, 70.5%, 0%, 21.6%)
CIE-LABlab(36.88, 49.33, -68.70)
CIE-LCHlch(36.88, 84.57, 305.68°)
OKLaboklab(47.74% 0.0557 -0.1976)
OKLCHoklch(47.74% 0.205 285.7)
XYZxyz(16.2026, 9.4708, 55.6067)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BC8 #A9C83B
analogous
#3B63C8 #5A3BC8 #A03BC8
triadic
#5A3BC8 #C85A3B #3BC85A
tetradic
#5A3BC8 #C83B63 #A9C83B #3BC8A0
square
#5A3BC8 #C83B63 #A9C83B #3BC8A0
split-complementary
#5A3BC8 #C8A03B #63C83B
monochromatic
#2F1E6B #442B9A #5A3BC8 #826BD5 #AA9BE3

Accessibility & contrast

On white

7.26
#5A3BC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A3BC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BC8
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BC8#FFFFFF#000000##FFFFFF
##5A3BC81.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#29607D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3bc8;
/* rgb */ color: rgb(90, 59, 200);
/* oklch */ color: oklch(47.7% 0.205 285.7);
Tailwind
colors: {
  custom: {
    50: '#9474da',
    500: '#5a3bc8',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bc8;
$custom-light: #9474da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bc8",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 200
  },
  "hsl": {
    "h": 253.191,
    "s": 56.175,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47738,
    "c": 0.2053,
    "h": 285.7
  },
  "luminance": 0.09472
}

Semantic roles & 50–950 ramp

primary
#5A3BC8
secondary
#C1CF90
accent
#DF48BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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