#5A3FCC#5A3FCC

#5A3FCC is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.6% C 0.206 H 284.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5A3FCC
RGBrgb(90, 63, 204)
HSLhsl(251, 58%, 52%)
HSVhsv(251, 69%, 80%)
CMYKcmyk(55.9%, 69.1%, 0%, 20%)
CIE-LABlab(38.00, 48.35, -69.19)
CIE-LCHlch(38.00, 84.41, 304.95°)
OKLaboklab(48.65% 0.0516 -0.199)
OKLCHoklch(48.65% 0.206 284.5)
XYZxyz(16.8897, 10.0873, 58.1721)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FCC #B1CC3F
analogous
#3F6BCC #5A3FCC #A03FCC
triadic
#5A3FCC #CC5A3F #3FCC5A
tetradic
#5A3FCC #CC3F6B #B1CC3F #3FCCA0
square
#5A3FCC #CC3F6B #B1CC3F #3FCCA0
split-complementary
#5A3FCC #CCA03F #6BCC3F
monochromatic
#2E1E72 #422BA3 #5A3FCC #846FD9 #ADA0E6

Accessibility & contrast

On white

6.96
#5A3FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5A3FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FCC
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FCC#FFFFFF#000000##FFFFFF
##5A3FCC1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#236481
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3fcc;
/* rgb */ color: rgb(90, 63, 204);
/* oklch */ color: oklch(48.6% 0.206 284.5);
Tailwind
colors: {
  custom: {
    50: '#9476dd',
    500: '#5a3fcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fcc;
$custom-light: #9476dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fcc",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 204
  },
  "hsl": {
    "h": 251.489,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48646,
    "c": 0.20563,
    "h": 284.5
  },
  "luminance": 0.10088
}

Semantic roles & 50–950 ramp

primary
#5A3FCC
secondary
#C6D295
accent
#E147C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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