#5A2DBC#5A2DBC

#5A2DBC is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.206 H 289.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5A2DBC
RGBrgb(90, 45, 188)
HSLhsl(259, 61%, 46%)
HSVhsv(259, 76%, 74%)
CMYKcmyk(52.1%, 76.1%, 0%, 26.3%)
CIE-LABlab(33.31, 52.95, -67.52)
CIE-LCHlch(33.31, 85.81, 308.11°)
OKLaboklab(44.89% 0.0696 -0.1941)
OKLCHoklch(44.89% 0.206 289.7)
XYZxyz(14.2293, 7.6806, 48.3000)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DBC #8FBC2D
analogous
#2D48BC #5A2DBC #A12DBC
triadic
#5A2DBC #BC5A2D #2DBC5A
tetradic
#5A2DBC #BC2D48 #8FBC2D #2DBCA1
square
#5A2DBC #BC2D48 #8FBC2D #2DBCA1
split-complementary
#5A2DBC #BCA12D #48BC2D
monochromatic
#2B1559 #42218B #5A2DBC #7B51D5 #A082E1

Accessibility & contrast

On white

8.28
#5A2DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5A2DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DBC
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DBC#FFFFFF#000000##FFFFFF
##5A2DBC1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#365573
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2dbc;
/* rgb */ color: rgb(90, 45, 188);
/* oklch */ color: oklch(44.9% 0.206 289.7);
Tailwind
colors: {
  custom: {
    50: '#936bd1',
    500: '#5a2dbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a2dbc;
$custom-light: #936bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2dbc",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 258.881,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44889,
    "c": 0.20617,
    "h": 289.7
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#5A2DBC
secondary
#B1CA7B
accent
#E443B2
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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