#5A3FBC#5A3FBC

#5A3FBC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.186 H 286.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5A3FBC
RGBrgb(90, 63, 188)
HSLhsl(253, 50%, 49%)
HSVhsv(253, 66%, 74%)
CMYKcmyk(52.1%, 66.5%, 0%, 26.3%)
CIE-LABlab(36.67, 43.60, -62.02)
CIE-LCHlch(36.67, 75.81, 305.11°)
OKLaboklab(47.28% 0.0541 -0.178)
OKLCHoklch(47.28% 0.186 286.9)
XYZxyz(15.0684, 9.3588, 48.5796)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FBC #A1BC3F
analogous
#3F63BC #5A3FBC #993FBC
triadic
#5A3FBC #BC5A3F #3FBC5A
tetradic
#5A3FBC #BC3F63 #A1BC3F #3FBC99
square
#5A3FBC #BC3F63 #A1BC3F #3FBC99
split-complementary
#5A3FBC #BC993F #63BC3F
monochromatic
#2E2060 #44308E #5A3FBC #806BCD #A799DD

Accessibility & contrast

On white

7.31
#5A3FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5A3FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FBC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FBC#FFFFFF#000000##FFFFFF
##5A3FBC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#345E78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3fbc;
/* rgb */ color: rgb(90, 63, 188);
/* oklch */ color: oklch(47.3% 0.186 286.9);
Tailwind
colors: {
  custom: {
    50: '#9176d1',
    500: '#5a3fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fbc;
$custom-light: #9176d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fbc",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 188
  },
  "hsl": {
    "h": 252.96,
    "s": 49.801,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47277,
    "c": 0.18604,
    "h": 286.9
  },
  "luminance": 0.0936
}

Semantic roles & 50–950 ramp

primary
#5A3FBC
secondary
#BCC98E
accent
#D94EBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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