#5A2B94#5A2B94

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

Color values

HEX#5A2B94
RGBrgb(90, 43, 148)
HSLhsl(267, 55%, 37%)
HSVhsv(267, 71%, 58%)
CMYKcmyk(39.2%, 70.9%, 0%, 42%)
CIE-LABlab(29.51, 43.16, -49.66)
CIE-LCHlch(29.51, 65.80, 311.00°)
OKLaboklab(41.14% 0.0806 -0.1416)
OKLCHoklch(41.14% 0.163 299.6)
XYZxyz(10.4243, 6.0394, 28.6278)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B94 #65942B
analogous
#2B3194 #5A2B94 #8E2B94
triadic
#5A2B94 #945A2B #2B945A
tetradic
#5A2B94 #942B31 #65942B #2B948E
square
#5A2B94 #942B31 #65942B #2B948E
split-complementary
#5A2B94 #948E2B #31942B
monochromatic
#200F35 #3D1D65 #5A2B94 #7739C3 #9767D3

Accessibility & contrast

On white

9.51
#5A2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2B94
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B94#FFFFFF#000000##FFFFFF
##5A2B941.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#4D445C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2b94;
/* rgb */ color: rgb(90, 43, 148);
/* oklch */ color: oklch(41.1% 0.163 299.6);
Tailwind
colors: {
  custom: {
    50: '#8e68b4',
    500: '#5a2b94',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b94;
$custom-light: #8e68b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b94",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 266.857,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41142,
    "c": 0.16294,
    "h": 299.6
  },
  "luminance": 0.0604
}

Semantic roles & 50–950 ramp

primary
#5A2B94
secondary
#92B962
accent
#DE499C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2B94

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

Preview Lab → · Contrast checker → · Palette generator →

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