#5B207F#5B207F

#5B207F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.154 H 309.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5B207F
RGBrgb(91, 32, 127)
HSLhsl(277, 60%, 31%)
HSVhsv(277, 75%, 50%)
CMYKcmyk(28.3%, 74.8%, 0%, 50.2%)
CIE-LABlab(26.13, 43.42, -42.08)
CIE-LCHlch(26.13, 60.46, 315.90°)
OKLaboklab(38.25% 0.0974 -0.1192)
OKLCHoklch(38.25% 0.154 309.2)
XYZxyz(8.6609, 4.7896, 20.5428)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B207F #447F20
analogous
#2B207F #5B207F #7F2073
triadic
#5B207F #7F5B20 #207F5B
tetradic
#5B207F #7F2B20 #447F20 #20737F
square
#5B207F #7F2B20 #447F20 #20737F
split-complementary
#5B207F #737F20 #207F2B
monochromatic
#15071D #38144E #5B207F #7E2CB0 #9D48D1

Accessibility & contrast

On white

10.73
#5B207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5B207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B207F
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B207F#FFFFFF#000000##FFFFFF
##5B207F1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#083F7D
Tritanopia (blue-blind)
#56364D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b207f;
/* rgb */ color: rgb(91, 32, 127);
/* oklch */ color: oklch(38.2% 0.154 309.2);
Tailwind
colors: {
  custom: {
    50: '#8d61a5',
    500: '#5b207f',
    950: '#000000',
  },
}
SCSS
$custom: #5b207f;
$custom-light: #8d61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b207f",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 277.263,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38248,
    "c": 0.15395,
    "h": 309.2
  },
  "luminance": 0.04789
}

Semantic roles & 50–950 ramp

primary
#5B207F
secondary
#71B249
accent
#E34581
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5B207F

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

Preview Lab → · Contrast checker → · Palette generator →

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