#5A2FB7#5A2FB7

#5A2FB7 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.199 H 290.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5A2FB7
RGBrgb(90, 47, 183)
HSLhsl(259, 59%, 45%)
HSVhsv(259, 74%, 72%)
CMYKcmyk(50.8%, 74.3%, 0%, 28.2%)
CIE-LABlab(33.19, 50.63, -64.76)
CIE-LCHlch(33.19, 82.20, 308.02°)
OKLaboklab(44.67% 0.0693 -0.186)
OKLCHoklch(44.67% 0.199 290.4)
XYZxyz(13.7778, 7.6250, 45.5364)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FB7 #8CB72F
analogous
#2F48B7 #5A2FB7 #9E2FB7
triadic
#5A2FB7 #B75A2F #2FB75A
tetradic
#5A2FB7 #B72F48 #8CB72F #2FB79E
square
#5A2FB7 #B72F48 #8CB72F #2FB79E
split-complementary
#5A2FB7 #B79E2F #48B72F
monochromatic
#2A1656 #422286 #5A2FB7 #7A51D2 #9F82DF

Accessibility & contrast

On white

8.32
#5A2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2FB7
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FB7#FFFFFF#000000##FFFFFF
##5A2FB71.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#395471
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2fb7;
/* rgb */ color: rgb(90, 47, 183);
/* oklch */ color: oklch(44.7% 0.199 290.4);
Tailwind
colors: {
  custom: {
    50: '#926cce',
    500: '#5a2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fb7;
$custom-light: #926cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fb7",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 258.971,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44667,
    "c": 0.1985,
    "h": 290.4
  },
  "luminance": 0.07626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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