#5B207D#5B207D

#5B207D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.152 H 310.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5B207D
RGBrgb(91, 32, 125)
HSLhsl(278, 59%, 31%)
HSVhsv(278, 74%, 49%)
CMYKcmyk(27.2%, 74.4%, 0%, 51%)
CIE-LABlab(25.97, 42.95, -41.06)
CIE-LCHlch(25.97, 59.42, 316.29°)
OKLaboklab(38.09% 0.0977 -0.1163)
OKLCHoklch(38.09% 0.152 310)
XYZxyz(8.5318, 4.7380, 19.8631)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B207D #427D20
analogous
#2D207D #5B207D #7D2070
triadic
#5B207D #7D5B20 #207D5B
tetradic
#5B207D #7D2D20 #427D20 #20707D
square
#5B207D #7D2D20 #427D20 #20707D
split-complementary
#5B207D #707D20 #207D2D
monochromatic
#14071C #38144C #5B207D #7E2CAE #9E47D0

Accessibility & contrast

On white

10.78
#5B207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B207D
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B207D#FFFFFF#000000##FFFFFF
##5B207D1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#0D3E7B
Tritanopia (blue-blind)
#56354C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b207d;
/* rgb */ color: rgb(91, 32, 125);
/* oklch */ color: oklch(38.1% 0.152 310.0);
Tailwind
colors: {
  custom: {
    50: '#8d61a3',
    500: '#5b207d',
    950: '#000000',
  },
}
SCSS
$custom: #5b207d;
$custom-light: #8d61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b207d",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 278.065,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38092,
    "c": 0.15185,
    "h": 310
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#5B207D
secondary
#6FB049
accent
#E2457F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5B207D

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

Preview Lab → · Contrast checker → · Palette generator →

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