#5B247F#5B247F

#5B247F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.149 H 308.7°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5B247F
RGBrgb(91, 36, 127)
HSLhsl(276, 56%, 32%)
HSVhsv(276, 72%, 50%)
CMYKcmyk(28.3%, 71.7%, 0%, 50.2%)
CIE-LABlab(26.79, 41.56, -41.01)
CIE-LCHlch(26.79, 58.38, 315.38°)
OKLaboklab(38.72% 0.093 -0.1161)
OKLCHoklch(38.72% 0.149 308.7)
XYZxyz(8.7752, 5.0184, 20.5809)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B247F #487F24
analogous
#2E247F #5B247F #7F2476
triadic
#5B247F #7F5B24 #247F5B
tetradic
#5B247F #7F2E24 #487F24 #24767F
square
#5B247F #7F2E24 #487F24 #24767F
split-complementary
#5B247F #767F24 #247F2E
monochromatic
#170920 #39164F #5B247F #7D32AF #9C50CD

Accessibility & contrast

On white

10.48
#5B247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B247F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B247F#FFFFFF#000000##FFFFFF
##5B247F1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#10407D
Tritanopia (blue-blind)
#56384F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b247f;
/* rgb */ color: rgb(91, 36, 127);
/* oklch */ color: oklch(38.7% 0.149 308.7);
Tailwind
colors: {
  custom: {
    50: '#8d64a5',
    500: '#5b247f',
    950: '#000000',
  },
}
SCSS
$custom: #5b247f;
$custom-light: #8d64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b247f",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 276.264,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38718,
    "c": 0.14876,
    "h": 308.7
  },
  "luminance": 0.05018
}

Semantic roles & 50–950 ramp

primary
#5B247F
secondary
#75B14E
accent
#DF4984
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5B247F

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

Preview Lab → · Contrast checker → · Palette generator →

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