#5A2F95#5A2F95

#5A2F95 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.159 H 298.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5A2F95
RGBrgb(90, 47, 149)
HSLhsl(265, 52%, 38%)
HSVhsv(265, 68%, 58%)
CMYKcmyk(39.6%, 68.5%, 0%, 41.6%)
CIE-LABlab(30.34, 41.34, -48.92)
CIE-LCHlch(30.34, 64.05, 310.20°)
OKLaboklab(41.76% 0.0761 -0.1395)
OKLCHoklch(41.76% 0.159 298.6)
XYZxyz(10.6564, 6.3765, 29.0973)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2F95 #6A952F
analogous
#2F3795 #5A2F95 #8D2F95
triadic
#5A2F95 #955A2F #2F955A
tetradic
#5A2F95 #952F37 #6A952F #2F958D
square
#5A2F95 #952F37 #6A952F #2F958D
split-complementary
#5A2F95 #958D2F #37952F
monochromatic
#221238 #3E2066 #5A2F95 #763FC2 #976DD1

Accessibility & contrast

On white

9.23
#5A2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5A2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2F95
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2F95#FFFFFF#000000##FFFFFF
##5A2F951.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#4C475E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2f95;
/* rgb */ color: rgb(90, 47, 149);
/* oklch */ color: oklch(41.8% 0.159 298.6);
Tailwind
colors: {
  custom: {
    50: '#8e6bb5',
    500: '#5a2f95',
    950: '#000000',
  },
}
SCSS
$custom: #5a2f95;
$custom-light: #8e6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2f95",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 265.294,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41761,
    "c": 0.15887,
    "h": 298.6
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#5A2F95
secondary
#96B867
accent
#DB4C9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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