#5A3ECF#5A3ECF

#5A3ECF is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.8% C 0.210 H 284.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5A3ECF
RGBrgb(90, 62, 207)
HSLhsl(252, 60%, 53%)
HSVhsv(252, 70%, 81%)
CMYKcmyk(56.5%, 70%, 0%, 18.8%)
CIE-LABlab(38.06, 49.78, -70.82)
CIE-LCHlch(38.06, 86.56, 305.10°)
OKLaboklab(48.77% 0.0519 -0.2038)
OKLCHoklch(48.77% 0.21 284.3)
XYZxyz(17.1981, 10.1229, 60.0671)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ECF #B3CF3E
analogous
#3E6BCF #5A3ECF #A23ECF
triadic
#5A3ECF #CF5A3E #3ECF5A
tetradic
#5A3ECF #CF3E6B #B3CF3E #3ECFA2
square
#5A3ECF #CF3E6B #B3CF3E #3ECFA2
split-complementary
#5A3ECF #CFA23E #6BCF3E
monochromatic
#2E1D75 #4229A6 #5A3ECF #846FDB #AEA0E7

Accessibility & contrast

On white

6.94
#5A3ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A3ECF
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ECF#FFFFFF#000000##FFFFFF
##5A3ECF1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.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: #5a3ecf;
/* rgb */ color: rgb(90, 62, 207);
/* oklch */ color: oklch(48.8% 0.210 284.3);
Tailwind
colors: {
  custom: {
    50: '#9476df',
    500: '#5a3ecf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ecf;
$custom-light: #9476df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ecf",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 207
  },
  "hsl": {
    "h": 251.586,
    "s": 60.166,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48771,
    "c": 0.21033,
    "h": 284.3
  },
  "luminance": 0.10124
}

Semantic roles & 50–950 ramp

primary
#5A3ECF
secondary
#C8D495
accent
#E344C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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