#5B248F#5B248F

#5B248F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.166 H 302.9°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#5B248F
RGBrgb(91, 36, 143)
HSLhsl(271, 60%, 35%)
HSVhsv(271, 75%, 56%)
CMYKcmyk(36.4%, 74.8%, 0%, 43.9%)
CIE-LABlab(28.03, 45.48, -48.98)
CIE-LCHlch(28.03, 66.84, 312.88°)
OKLaboklab(39.99% 0.0902 -0.1396)
OKLCHoklch(39.99% 0.166 302.9)
XYZxyz(9.9020, 5.4691, 26.5152)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B248F #588F24
analogous
#25248F #5B248F #8F248E
triadic
#5B248F #8F5B24 #248F5B
tetradic
#5B248F #8F2524 #588F24 #248E8F
square
#5B248F #8F2524 #588F24 #248E8F
split-complementary
#5B248F #8E8F24 #248F25
monochromatic
#1D0B2D #3C185E #5B248F #7A30C0 #9858D5

Accessibility & contrast

On white

10.03
#5B248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B248F
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B248F#FFFFFF#000000##FFFFFF
##5B248F1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#503E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b248f;
/* rgb */ color: rgb(91, 36, 143);
/* oklch */ color: oklch(40.0% 0.166 302.9);
Tailwind
colors: {
  custom: {
    50: '#8e64b1',
    500: '#5b248f',
    950: '#000000',
  },
}
SCSS
$custom: #5b248f;
$custom-light: #8e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b248f",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 270.841,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39994,
    "c": 0.16619,
    "h": 302.9
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

primary
#5B248F
secondary
#86B955
accent
#E34592
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B248F

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

Preview Lab → · Contrast checker → · Palette generator →

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