#5A2D92#5A2D92

#5A2D92 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.158 H 299.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5A2D92
RGBrgb(90, 45, 146)
HSLhsl(267, 53%, 37%)
HSVhsv(267, 69%, 57%)
CMYKcmyk(38.4%, 69.2%, 0%, 42.7%)
CIE-LABlab(29.73, 41.60, -48.08)
CIE-LCHlch(29.73, 63.58, 310.87°)
OKLaboklab(41.25% 0.0787 -0.137)
OKLCHoklch(41.25% 0.158 299.9)
XYZxyz(10.3419, 6.1257, 27.8261)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D92 #65922D
analogous
#2D3292 #5A2D92 #8D2D92
triadic
#5A2D92 #925A2D #2D925A
tetradic
#5A2D92 #922D32 #65922D #2D928D
square
#5A2D92 #922D32 #65922D #2D928D
split-complementary
#5A2D92 #928D2D #32922D
monochromatic
#201034 #3D1F63 #5A2D92 #773BC1 #9769D1

Accessibility & contrast

On white

9.44
#5A2D92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A2D92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D92
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D92#FFFFFF#000000##FFFFFF
##5A2D921.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2d92;
/* rgb */ color: rgb(90, 45, 146);
/* oklch */ color: oklch(41.2% 0.158 299.9);
Tailwind
colors: {
  custom: {
    50: '#8d69b3',
    500: '#5a2d92',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d92;
$custom-light: #8d69b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d92",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 146
  },
  "hsl": {
    "h": 266.733,
    "s": 52.88,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41247,
    "c": 0.158,
    "h": 299.9
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#5A2D92
secondary
#92B763
accent
#DC4C9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2D92

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

Preview Lab → · Contrast checker → · Palette generator →

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