#5B207E#5B207E

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

Color values

HEX#5B207E
RGBrgb(91, 32, 126)
HSLhsl(278, 59%, 31%)
HSVhsv(278, 75%, 49%)
CMYKcmyk(27.8%, 74.6%, 0%, 50.6%)
CIE-LABlab(26.05, 43.18, -41.57)
CIE-LCHlch(26.05, 59.94, 316.09°)
OKLaboklab(38.17% 0.0975 -0.1177)
OKLCHoklch(38.17% 0.153 309.6)
XYZxyz(8.5960, 4.7637, 20.2013)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B207E #437E20
analogous
#2C207E #5B207E #7E2072
triadic
#5B207E #7E5B20 #207E5B
tetradic
#5B207E #7E2C20 #437E20 #20727E
square
#5B207E #7E2C20 #437E20 #20727E
split-complementary
#5B207E #727E20 #207E2C
monochromatic
#15071C #38144D #5B207E #7E2CAF #9E48D0

Accessibility & contrast

On white

10.75
#5B207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B207E
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B207E#FFFFFF#000000##FFFFFF
##5B207E1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#0B3E7C
Tritanopia (blue-blind)
#56354D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b207e;
/* rgb */ color: rgb(91, 32, 126);
/* oklch */ color: oklch(38.2% 0.153 309.6);
Tailwind
colors: {
  custom: {
    50: '#8d61a4',
    500: '#5b207e',
    950: '#000000',
  },
}
SCSS
$custom: #5b207e;
$custom-light: #8d61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b207e",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 277.66,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3817,
    "c": 0.1529,
    "h": 309.6
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#5B207E
secondary
#70B149
accent
#E34580
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5B207E

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

Preview Lab → · Contrast checker → · Palette generator →

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