#5B24A7#5B24A7

#5B24A7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.192 H 296.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5B24A7
RGBrgb(91, 36, 167)
HSLhsl(265, 65%, 40%)
HSVhsv(265, 78%, 65%)
CMYKcmyk(45.5%, 78.4%, 0%, 34.5%)
CIE-LABlab(30.10, 51.57, -60.26)
CIE-LCHlch(30.10, 79.31, 310.56°)
OKLaboklab(42.08% 0.0841 -0.1727)
OKLCHoklch(42.08% 0.192 296)
XYZxyz(11.9184, 6.2756, 37.1351)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B24A7 #70A724
analogous
#242EA7 #5B24A7 #9D24A7
triadic
#5B24A7 #A75B24 #24A75B
tetradic
#5B24A7 #A7242E #70A724 #24A79D
square
#5B24A7 #A7242E #70A724 #24A79D
split-complementary
#5B24A7 #A79D24 #2EA724
monochromatic
#240E42 #401975 #5B24A7 #7735D3 #9967DE

Accessibility & contrast

On white

9.31
#5B24A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B24A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B24A7
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B24A7#FFFFFF#000000##FFFFFF
##5B24A71.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#464865
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b24a7;
/* rgb */ color: rgb(91, 36, 167);
/* oklch */ color: oklch(42.1% 0.192 296.0);
Tailwind
colors: {
  custom: {
    50: '#9165c2',
    500: '#5b24a7',
    950: '#000000',
  },
}
SCSS
$custom: #5b24a7;
$custom-light: #9165c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b24a7",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 265.191,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42084,
    "c": 0.19208,
    "h": 296
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#5B24A7
secondary
#9BC463
accent
#E840A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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