#5A2FDB#5A2FDB

#5A2FDB is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.239 H 284.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5A2FDB
RGBrgb(90, 47, 219)
HSLhsl(255, 70%, 52%)
HSVhsv(255, 79%, 86%)
CMYKcmyk(58.9%, 78.5%, 0%, 14.1%)
CIE-LABlab(36.59, 60.52, -80.15)
CIE-LCHlch(36.59, 100.43, 307.05°)
OKLaboklab(48.07% 0.0594 -0.231)
OKLCHoklch(48.07% 0.239 284.4)
XYZxyz(18.0152, 9.3200, 67.8537)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FDB #B0DB2F
analogous
#2F5ADB #5A2FDB #B02FDB
triadic
#5A2FDB #DB5A2F #2FDB5A
tetradic
#5A2FDB #DB2F5A #B0DB2F #2FDBB0
square
#5A2FDB #DB2F5A #B0DB2F #2FDBB0
split-complementary
#5A2FDB #DBB02F #5ADB2F
monochromatic
#2E157A #421EAF #5A2FDB #8363E4 #AD97ED

Accessibility & contrast

On white

7.33
#5A2FDB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A2FDB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FDB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FDB#FFFFFF#000000##FFFFFF
##5A2FDB1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE0
Deuteranopia (green-blind)
#0051D8
Tritanopia (blue-blind)
#006285
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a2fdb;
/* rgb */ color: rgb(90, 47, 219);
/* oklch */ color: oklch(48.1% 0.239 284.4);
Tailwind
colors: {
  custom: {
    50: '#976ee8',
    500: '#5a2fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fdb;
$custom-light: #976ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fdb",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 219
  },
  "hsl": {
    "h": 255,
    "s": 70.492,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48074,
    "c": 0.23853,
    "h": 284.4
  },
  "luminance": 0.09321
}

Semantic roles & 50–950 ramp

primary
#5A2FDB
secondary
#C6D88D
accent
#ED3BC1
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A2FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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