#5A2C92#5A2C92

#5A2C92 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.159 H 300.1°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5A2C92
RGBrgb(90, 44, 146)
HSLhsl(267, 54%, 37%)
HSVhsv(267, 70%, 57%)
CMYKcmyk(38.4%, 69.9%, 0%, 42.7%)
CIE-LABlab(29.54, 42.12, -48.38)
CIE-LCHlch(29.54, 64.15, 311.04°)
OKLaboklab(41.11% 0.0798 -0.1379)
OKLCHoklch(41.11% 0.159 300.1)
XYZxyz(10.3042, 6.0503, 27.8135)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C92 #64922C
analogous
#2C3192 #5A2C92 #8D2C92
triadic
#5A2C92 #925A2C #2C925A
tetradic
#5A2C92 #922C31 #64922C #2C928D
square
#5A2C92 #922C31 #64922C #2C928D
split-complementary
#5A2C92 #928D2C #31922C
monochromatic
#201034 #3D1E63 #5A2C92 #773AC1 #9767D1

Accessibility & contrast

On white

9.50
#5A2C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A2C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C92
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C92#FFFFFF#000000##FFFFFF
##5A2C921.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004590
Tritanopia (blue-blind)
#4D445B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2c92;
/* rgb */ color: rgb(90, 44, 146);
/* oklch */ color: oklch(41.1% 0.159 300.1);
Tailwind
colors: {
  custom: {
    50: '#8e69b3',
    500: '#5a2c92',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c92;
$custom-light: #8e69b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c92",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 267.059,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41112,
    "c": 0.15932,
    "h": 300.1
  },
  "luminance": 0.0605
}

Semantic roles & 50–950 ramp

primary
#5A2C92
secondary
#91B862
accent
#DD4B9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2C92

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

Preview Lab → · Contrast checker → · Palette generator →

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