#5A3FCB#5A3FCB

#5A3FCB is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.6% C 0.204 H 284.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5A3FCB
RGBrgb(90, 63, 203)
HSLhsl(252, 57%, 52%)
HSVhsv(252, 69%, 80%)
CMYKcmyk(55.7%, 69%, 0%, 20.4%)
CIE-LABlab(37.91, 48.05, -68.74)
CIE-LCHlch(37.91, 83.87, 304.95°)
OKLaboklab(48.56% 0.0518 -0.1978)
OKLCHoklch(48.56% 0.204 284.7)
XYZxyz(16.7702, 10.0395, 57.5425)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FCB #B0CB3F
analogous
#3F6ACB #5A3FCB #A03FCB
triadic
#5A3FCB #CB5A3F #3FCB5A
tetradic
#5A3FCB #CB3F6A #B0CB3F #3FCBA0
square
#5A3FCB #CB3F6A #B0CB3F #3FCBA0
split-complementary
#5A3FCB #CBA03F #6ACB3F
monochromatic
#2E1F71 #422CA1 #5A3FCB #836FD8 #AD9FE5

Accessibility & contrast

On white

6.98
#5A3FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5A3FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FCB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FCB#FFFFFF#000000##FFFFFF
##5A3FCB1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#246480
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3fcb;
/* rgb */ color: rgb(90, 63, 203);
/* oklch */ color: oklch(48.6% 0.204 284.7);
Tailwind
colors: {
  custom: {
    50: '#9476dc',
    500: '#5a3fcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fcb;
$custom-light: #9476dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fcb",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 203
  },
  "hsl": {
    "h": 251.571,
    "s": 57.377,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48558,
    "c": 0.20443,
    "h": 284.7
  },
  "luminance": 0.1004
}

Semantic roles & 50–950 ramp

primary
#5A3FCB
secondary
#C6D194
accent
#E147C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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