#5B2FB2#5B2FB2

#5B2FB2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.193 H 291.9°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5B2FB2
RGBrgb(91, 47, 178)
HSLhsl(260, 58%, 44%)
HSVhsv(260, 74%, 70%)
CMYKcmyk(48.9%, 73.6%, 0%, 30.2%)
CIE-LABlab(32.86, 49.41, -62.33)
CIE-LCHlch(32.86, 79.54, 308.41°)
OKLaboklab(44.32% 0.072 -0.1788)
OKLCHoklch(44.32% 0.193 291.9)
XYZxyz(13.3645, 7.4710, 42.8487)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2FB2 #86B22F
analogous
#2F44B2 #5B2FB2 #9D2FB2
triadic
#5B2FB2 #B25B2F #2FB25B
tetradic
#5B2FB2 #B22F44 #86B22F #2FB29D
square
#5B2FB2 #B22F44 #86B22F #2FB29D
split-complementary
#5B2FB2 #B29D2F #44B22F
monochromatic
#291551 #422282 #5B2FB2 #7A4ED0 #9E7EDD

Accessibility & contrast

On white

8.42
#5B2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5B2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2FB2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2FB2#FFFFFF#000000##FFFFFF
##5B2FB21.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2fb2;
/* rgb */ color: rgb(91, 47, 178);
/* oklch */ color: oklch(44.3% 0.193 291.9);
Tailwind
colors: {
  custom: {
    50: '#926cca',
    500: '#5b2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2fb2;
$custom-light: #926cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2fb2",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 260.153,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44321,
    "c": 0.19279,
    "h": 291.9
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#5B2FB2
secondary
#ABC677
accent
#E146AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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