#5A2FB2#5A2FB2

#5A2FB2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.193 H 291.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB2
RGBrgb(90, 47, 178)
HSLhsl(260, 58%, 44%)
HSVhsv(260, 74%, 70%)
CMYKcmyk(49.4%, 73.6%, 0%, 30.2%)
CIE-LABlab(32.75, 49.25, -62.51)
CIE-LCHlch(32.75, 79.59, 308.23°)
OKLaboklab(44.22% 0.0705 -0.1794)
OKLCHoklch(44.22% 0.193 291.5)
XYZxyz(13.2666, 7.4205, 42.8441)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB2 #87B22F
analogous
#2F45B2 #5A2FB2 #9C2FB2
triadic
#5A2FB2 #B25A2F #2FB25A
tetradic
#5A2FB2 #B22F45 #87B22F #2FB29C
square
#5A2FB2 #B22F45 #87B22F #2FB29C
split-complementary
#5A2FB2 #B29C2F #45B22F
monochromatic
#291551 #422282 #5A2FB2 #794ED0 #9D7EDD

Accessibility & contrast

On white

8.45
#5A2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5A2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB2#FFFFFF#000000##FFFFFF
##5A2FB21.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#3D526E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2fb2;
/* rgb */ color: rgb(90, 47, 178);
/* oklch */ color: oklch(44.2% 0.193 291.5);
Tailwind
colors: {
  custom: {
    50: '#916cca',
    500: '#5a2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb2;
$custom-light: #916cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb2",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 259.695,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44218,
    "c": 0.19278,
    "h": 291.5
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#5A2FB2
secondary
#ACC677
accent
#E146AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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