#5A2DBF#5A2DBF

#5A2DBF is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.210 H 289.2°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5A2DBF
RGBrgb(90, 45, 191)
HSLhsl(258, 62%, 46%)
HSVhsv(258, 76%, 75%)
CMYKcmyk(52.9%, 76.4%, 0%, 25.1%)
CIE-LABlab(33.59, 53.77, -68.83)
CIE-LCHlch(33.59, 87.34, 308.00°)
OKLaboklab(45.17% 0.0688 -0.1979)
OKLCHoklch(45.17% 0.21 289.2)
XYZxyz(14.5561, 7.8113, 50.0209)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DBF #92BF2D
analogous
#2D49BF #5A2DBF #A32DBF
triadic
#5A2DBF #BF5A2D #2DBF5A
tetradic
#5A2DBF #BF2D49 #92BF2D #2DBFA3
square
#5A2DBF #BF2D49 #92BF2D #2DBFA3
split-complementary
#5A2DBF #BFA32D #49BF2D
monochromatic
#2B165C #43218D #5A2DBF #7B53D6 #A184E2

Accessibility & contrast

On white

8.20
#5A2DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A2DBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DBF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DBF#FFFFFF#000000##FFFFFF
##5A2DBF1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#335675
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a2dbf;
/* rgb */ color: rgb(90, 45, 191);
/* oklch */ color: oklch(45.2% 0.210 289.2);
Tailwind
colors: {
  custom: {
    50: '#936bd4',
    500: '#5a2dbf',
    950: '#000000',
  },
}
SCSS
$custom: #5a2dbf;
$custom-light: #936bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2dbf",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 191
  },
  "hsl": {
    "h": 258.493,
    "s": 61.864,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45169,
    "c": 0.20952,
    "h": 289.2
  },
  "luminance": 0.07812
}

Semantic roles & 50–950 ramp

primary
#5A2DBF
secondary
#B3CB7C
accent
#E543B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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