#5A2B93#5A2B93

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

Color values

HEX#5A2B93
RGBrgb(90, 43, 147)
HSLhsl(267, 55%, 37%)
HSVhsv(267, 71%, 58%)
CMYKcmyk(38.8%, 70.7%, 0%, 42.4%)
CIE-LABlab(29.43, 42.90, -49.17)
CIE-LCHlch(29.43, 65.26, 311.10°)
OKLaboklab(41.06% 0.0807 -0.1402)
OKLCHoklch(41.06% 0.162 299.9)
XYZxyz(10.3455, 6.0079, 28.2127)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B93 #64932B
analogous
#2B3093 #5A2B93 #8E2B93
triadic
#5A2B93 #935A2B #2B935A
tetradic
#5A2B93 #932B30 #64932B #2B938E
square
#5A2B93 #932B30 #64932B #2B938E
split-complementary
#5A2B93 #938E2B #30932B
monochromatic
#200F34 #3D1D64 #5A2B93 #7739C2 #9766D2

Accessibility & contrast

On white

9.54
#5A2B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A2B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B93
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B93#FFFFFF#000000##FFFFFF
##5A2B931.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004596
Deuteranopia (green-blind)
#004591
Tritanopia (blue-blind)
#4D445C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2b93;
/* rgb */ color: rgb(90, 43, 147);
/* oklch */ color: oklch(41.1% 0.162 299.9);
Tailwind
colors: {
  custom: {
    50: '#8e68b3',
    500: '#5a2b93',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b93;
$custom-light: #8e68b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b93",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 147
  },
  "hsl": {
    "h": 267.115,
    "s": 54.737,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41061,
    "c": 0.1618,
    "h": 299.9
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#5A2B93
secondary
#91B961
accent
#DE4A9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2B93

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

Preview Lab → · Contrast checker → · Palette generator →

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