#5A3FCF#5A3FCF

#5A3FCF is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.209 H 284.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5A3FCF
RGBrgb(90, 63, 207)
HSLhsl(251, 60%, 53%)
HSVhsv(251, 70%, 81%)
CMYKcmyk(56.5%, 69.6%, 0%, 18.8%)
CIE-LABlab(38.26, 49.24, -70.50)
CIE-LCHlch(38.26, 85.99, 304.93°)
OKLaboklab(48.91% 0.0511 -0.2029)
OKLCHoklch(48.91% 0.209 284.1)
XYZxyz(17.2530, 10.2326, 60.0853)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FCF #B4CF3F
analogous
#3F6CCF #5A3FCF #A23FCF
triadic
#5A3FCF #CF5A3F #3FCF5A
tetradic
#5A3FCF #CF3F6C #B4CF3F #3FCFA2
square
#5A3FCF #CF3F6C #B4CF3F #3FCFA2
split-complementary
#5A3FCF #CFA23F #6CCF3F
monochromatic
#2E1E76 #412AA7 #5A3FCF #8470DB #AEA1E7

Accessibility & contrast

On white

6.89
#5A3FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5A3FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FCF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FCF#FFFFFF#000000##FFFFFF
##5A3FCF1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0055CC
Tritanopia (blue-blind)
#1E6582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3fcf;
/* rgb */ color: rgb(90, 63, 207);
/* oklch */ color: oklch(48.9% 0.209 284.1);
Tailwind
colors: {
  custom: {
    50: '#9476df',
    500: '#5a3fcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fcf;
$custom-light: #9476df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fcf",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 207
  },
  "hsl": {
    "h": 251.25,
    "s": 60,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4891,
    "c": 0.20923,
    "h": 284.1
  },
  "luminance": 0.10234
}

Semantic roles & 50–950 ramp

primary
#5A3FCF
secondary
#C8D496
accent
#E345C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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