#5A2FC1#5A2FC1

#5A2FC1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.210 H 288.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5A2FC1
RGBrgb(90, 47, 193)
HSLhsl(258, 61%, 47%)
HSVhsv(258, 76%, 76%)
CMYKcmyk(53.4%, 75.6%, 0%, 24.3%)
CIE-LABlab(34.10, 53.39, -69.16)
CIE-LCHlch(34.10, 87.37, 307.67°)
OKLaboklab(45.58% 0.0668 -0.1989)
OKLCHoklch(45.58% 0.21 288.6)
XYZxyz(14.8558, 8.0562, 51.2140)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FC1 #96C12F
analogous
#2F4DC1 #5A2FC1 #A32FC1
triadic
#5A2FC1 #C15A2F #2FC15A
tetradic
#5A2FC1 #C12F4D #96C12F #2FC1A3
square
#5A2FC1 #C12F4D #96C12F #2FC1A3
split-complementary
#5A2FC1 #C1A32F #4DC12F
monochromatic
#2C175F #432390 #5A2FC1 #7D57D6 #A388E2

Accessibility & contrast

On white

8.04
#5A2FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5A2FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FC1
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FC1#FFFFFF#000000##FFFFFF
##5A2FC11.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C5
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#315876
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a2fc1;
/* rgb */ color: rgb(90, 47, 193);
/* oklch */ color: oklch(45.6% 0.210 288.6);
Tailwind
colors: {
  custom: {
    50: '#936cd5',
    500: '#5a2fc1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fc1;
$custom-light: #936cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fc1",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 257.671,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45584,
    "c": 0.2098,
    "h": 288.6
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#5A2FC1
secondary
#B5CC80
accent
#E444B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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