#5A2D91#5A2D91

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

Color values

HEX#5A2D91
RGBrgb(90, 45, 145)
HSLhsl(267, 53%, 37%)
HSVhsv(267, 69%, 57%)
CMYKcmyk(37.9%, 69%, 0%, 43.1%)
CIE-LABlab(29.65, 41.34, -47.59)
CIE-LCHlch(29.65, 63.04, 310.98°)
OKLaboklab(41.17% 0.0789 -0.1356)
OKLCHoklch(41.17% 0.157 300.2)
XYZxyz(10.2644, 6.0947, 27.4182)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D91 #64912D
analogous
#2D3291 #5A2D91 #8C2D91
triadic
#5A2D91 #915A2D #2D915A
tetradic
#5A2D91 #912D32 #64912D #2D918C
square
#5A2D91 #912D32 #64912D #2D918C
split-complementary
#5A2D91 #918C2D #32912D
monochromatic
#201034 #3D1F62 #5A2D91 #773BC0 #9768D0

Accessibility & contrast

On white

9.46
#5A2D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5A2D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D91
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D91#FFFFFF#000000##FFFFFF
##5A2D911.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#4E445B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2d91;
/* rgb */ color: rgb(90, 45, 145);
/* oklch */ color: oklch(41.2% 0.157 300.2);
Tailwind
colors: {
  custom: {
    50: '#8d69b2',
    500: '#5a2d91',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d91;
$custom-light: #8d69b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d91",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 267,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41167,
    "c": 0.15682,
    "h": 300.2
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#5A2D91
secondary
#91B763
accent
#DC4C9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2D91

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

Preview Lab → · Contrast checker → · Palette generator →

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