#5A2FD3#5A2FD3

#5A2FD3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.230 H 285.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5A2FD3
RGBrgb(90, 47, 211)
HSLhsl(256, 65%, 51%)
HSVhsv(256, 78%, 83%)
CMYKcmyk(57.3%, 77.7%, 0%, 17.3%)
CIE-LABlab(35.81, 58.33, -76.84)
CIE-LCHlch(35.81, 96.47, 307.20°)
OKLaboklab(47.29% 0.0617 -0.2213)
OKLCHoklch(47.29% 0.23 285.6)
XYZxyz(16.9873, 8.9088, 62.4398)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FD3 #A8D32F
analogous
#2F56D3 #5A2FD3 #AC2FD3
triadic
#5A2FD3 #D35A2F #2FD35A
tetradic
#5A2FD3 #D32F56 #A8D32F #2FD3AC
square
#5A2FD3 #D32F56 #A8D32F #2FD3AC
split-complementary
#5A2FD3 #D3AC2F #56D32F
monochromatic
#2F1870 #4422A2 #5A2FD3 #8262DE #AA94E8

Accessibility & contrast

On white

7.55
#5A2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5A2FD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FD3
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FD3#FFFFFF#000000##FFFFFF
##5A2FD31.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#195F81
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a2fd3;
/* rgb */ color: rgb(90, 47, 211);
/* oklch */ color: oklch(47.3% 0.230 285.6);
Tailwind
colors: {
  custom: {
    50: '#966de2',
    500: '#5a2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fd3;
$custom-light: #966de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fd3",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 255.732,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47294,
    "c": 0.22979,
    "h": 285.6
  },
  "luminance": 0.0891
}

Semantic roles & 50–950 ramp

primary
#5A2FD3
secondary
#C0D38A
accent
#E840BC
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5A2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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