#5B267D#5B267D

#5B267D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.144 H 309.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5B267D
RGBrgb(91, 38, 125)
HSLhsl(277, 53%, 32%)
HSVhsv(277, 70%, 49%)
CMYKcmyk(27.2%, 69.6%, 0%, 51%)
CIE-LABlab(26.99, 40.09, -39.42)
CIE-LCHlch(26.99, 56.22, 315.49°)
OKLaboklab(38.82% 0.0909 -0.1115)
OKLCHoklch(38.82% 0.144 309.2)
XYZxyz(8.7084, 5.0912, 19.9220)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B267D #487D26
analogous
#30267D #5B267D #7D2674
triadic
#5B267D #7D5B26 #267D5B
tetradic
#5B267D #7D3026 #487D26 #26747D
square
#5B267D #7D3026 #487D26 #26747D
split-complementary
#5B267D #747D26 #267D30
monochromatic
#17091F #39184E #5B267D #7D34AC #9C53CB

Accessibility & contrast

On white

10.41
#5B267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B267D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B267D#FFFFFF#000000##FFFFFF
##5B267D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#17407B
Tritanopia (blue-blind)
#56384E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b267d;
/* rgb */ color: rgb(91, 38, 125);
/* oklch */ color: oklch(38.8% 0.144 309.2);
Tailwind
colors: {
  custom: {
    50: '#8d65a3',
    500: '#5b267d',
    950: '#000000',
  },
}
SCSS
$custom: #5b267d;
$custom-light: #8d65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b267d",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 276.552,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38819,
    "c": 0.14381,
    "h": 309.2
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

primary
#5B267D
secondary
#75AF50
accent
#DD4B84
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B267D

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

Preview Lab → · Contrast checker → · Palette generator →

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