#5A3BCF#5A3BCF

#5A3BCF is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.4% C 0.214 H 284.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5A3BCF
RGBrgb(90, 59, 207)
HSLhsl(253, 61%, 52%)
HSVhsv(253, 71%, 81%)
CMYKcmyk(56.5%, 71.5%, 0%, 18.8%)
CIE-LABlab(37.49, 51.37, -71.76)
CIE-LCHlch(37.49, 88.25, 305.60°)
OKLaboklab(48.36% 0.0543 -0.2066)
OKLCHoklch(48.36% 0.214 284.7)
XYZxyz(17.0395, 9.8056, 60.0142)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BCF #B0CF3B
analogous
#3B66CF #5A3BCF #A43BCF
triadic
#5A3BCF #CF5A3B #3BCF5A
tetradic
#5A3BCF #CF3B66 #B0CF3B #3BCFA4
square
#5A3BCF #CF3B66 #B0CF3B #3BCFA4
split-complementary
#5A3BCF #CFA43B #66CF3B
monochromatic
#2E1C73 #4228A5 #5A3BCF #836CDB #AD9DE7

Accessibility & contrast

On white

7.09
#5A3BCF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5A3BCF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BCF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BCF#FFFFFF#000000##FFFFFF
##5A3BCF1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#1F6381
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3bcf;
/* rgb */ color: rgb(90, 59, 207);
/* oklch */ color: oklch(48.4% 0.214 284.7);
Tailwind
colors: {
  custom: {
    50: '#9574df',
    500: '#5a3bcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bcf;
$custom-light: #9574df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bcf",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 207
  },
  "hsl": {
    "h": 252.568,
    "s": 60.656,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48364,
    "c": 0.21357,
    "h": 284.7
  },
  "luminance": 0.09807
}

Semantic roles & 50–950 ramp

primary
#5A3BCF
secondary
#C6D393
accent
#E444C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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