#5B248E#5B248E

#5B248E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.165 H 303.2°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5B248E
RGBrgb(91, 36, 142)
HSLhsl(271, 60%, 35%)
HSVhsv(271, 75%, 56%)
CMYKcmyk(35.9%, 74.6%, 0%, 44.3%)
CIE-LABlab(27.95, 45.23, -48.49)
CIE-LCHlch(27.95, 66.31, 313.01°)
OKLaboklab(39.91% 0.0904 -0.1381)
OKLCHoklch(39.91% 0.165 303.2)
XYZxyz(9.8266, 5.4389, 26.1181)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B248E #578E24
analogous
#26248E #5B248E #8E248C
triadic
#5B248E #8E5B24 #248E5B
tetradic
#5B248E #8E2624 #578E24 #248C8E
square
#5B248E #8E2624 #578E24 #248C8E
split-complementary
#5B248E #8C8E24 #248E26
monochromatic
#1C0B2C #3C185D #5B248E #7A30BF #9958D5

Accessibility & contrast

On white

10.06
#5B248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B248E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B248E#FFFFFF#000000##FFFFFF
##5B248E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#513E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b248e;
/* rgb */ color: rgb(91, 36, 142);
/* oklch */ color: oklch(39.9% 0.165 303.2);
Tailwind
colors: {
  custom: {
    50: '#8e64b0',
    500: '#5b248e',
    950: '#000000',
  },
}
SCSS
$custom: #5b248e;
$custom-light: #8e64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b248e",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 271.132,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39911,
    "c": 0.1651,
    "h": 303.2
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#5B248E
secondary
#85B955
accent
#E34591
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B248E

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

Preview Lab → · Contrast checker → · Palette generator →

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