#5A2FBD#5A2FBD

#5A2FBD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.205 H 289.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5A2FBD
RGBrgb(90, 47, 189)
HSLhsl(258, 60%, 46%)
HSVhsv(258, 75%, 74%)
CMYKcmyk(52.4%, 75.1%, 0%, 25.9%)
CIE-LABlab(33.73, 52.28, -67.41)
CIE-LCHlch(33.73, 85.31, 307.80°)
OKLaboklab(45.21% 0.0678 -0.1938)
OKLCHoklch(45.21% 0.205 289.3)
XYZxyz(14.4156, 7.8801, 48.8957)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FBD #92BD2F
analogous
#2F4BBD #5A2FBD #A12FBD
triadic
#5A2FBD #BD5A2F #2FBD5A
tetradic
#5A2FBD #BD2F4B #92BD2F #2FBDA1
square
#5A2FBD #BD2F4B #92BD2F #2FBDA1
split-complementary
#5A2FBD #BDA12F #4BBD2F
monochromatic
#2B175B #43238C #5A2FBD #7B55D5 #A186E1

Accessibility & contrast

On white

8.15
#5A2FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A2FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FBD
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FBD#FFFFFF#000000##FFFFFF
##5A2FBD1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#355674
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a2fbd;
/* rgb */ color: rgb(90, 47, 189);
/* oklch */ color: oklch(45.2% 0.205 289.3);
Tailwind
colors: {
  custom: {
    50: '#936cd2',
    500: '#5a2fbd',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fbd;
$custom-light: #936cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fbd",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 258.169,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45214,
    "c": 0.2053,
    "h": 289.3
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

primary
#5A2FBD
secondary
#B3CA7E
accent
#E344B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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