#5A2FB8#5A2FB8

#5A2FB8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.200 H 290.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB8
RGBrgb(90, 47, 184)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 74%, 72%)
CMYKcmyk(51.1%, 74.5%, 0%, 27.8%)
CIE-LABlab(33.28, 50.91, -65.20)
CIE-LCHlch(33.28, 82.72, 307.98°)
OKLaboklab(44.76% 0.0691 -0.1873)
OKLCHoklch(44.76% 0.2 290.2)
XYZxyz(13.8822, 7.6668, 46.0865)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB8 #8DB82F
analogous
#2F49B8 #5A2FB8 #9E2FB8
triadic
#5A2FB8 #B85A2F #2FB85A
tetradic
#5A2FB8 #B82F49 #8DB82F #2FB89E
square
#5A2FB8 #B82F49 #8DB82F #2FB89E
split-complementary
#5A2FB8 #B89E2F #49B82F
monochromatic
#2A1657 #422387 #5A2FB8 #7A52D3 #9F82DF

Accessibility & contrast

On white

8.29
#5A2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5A2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FB8
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB8#FFFFFF#000000##FFFFFF
##5A2FB81.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#395471
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2fb8;
/* rgb */ color: rgb(90, 47, 184);
/* oklch */ color: oklch(44.8% 0.200 290.2);
Tailwind
colors: {
  custom: {
    50: '#926cce',
    500: '#5a2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb8;
$custom-light: #926cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb8",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 258.832,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44757,
    "c": 0.19963,
    "h": 290.2
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#5A2FB8
secondary
#B0C87B
accent
#E245B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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