#5B267B#5B267B

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

Color values

HEX#5B267B
RGBrgb(91, 38, 123)
HSLhsl(277, 53%, 32%)
HSVhsv(277, 69%, 48%)
CMYKcmyk(26%, 69.1%, 0%, 51.8%)
CIE-LABlab(26.85, 39.61, -38.38)
CIE-LCHlch(26.85, 55.16, 315.90°)
OKLaboklab(38.67% 0.091 -0.1084)
OKLCHoklch(38.67% 0.142 310)
XYZxyz(8.5820, 5.0406, 19.2559)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B267B #467B26
analogous
#31267B #5B267B #7B2671
triadic
#5B267B #7B5B26 #267B5B
tetradic
#5B267B #7B3126 #467B26 #26717B
square
#5B267B #7B3126 #467B26 #26717B
split-complementary
#5B267B #717B26 #267B31
monochromatic
#16091D #38184C #5B267B #7E34AA #9C52CA

Accessibility & contrast

On white

10.46
#5B267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B267B
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B267B#FFFFFF#000000##FFFFFF
##5B267B1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#57384D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b267b;
/* rgb */ color: rgb(91, 38, 123);
/* oklch */ color: oklch(38.7% 0.142 310.0);
Tailwind
colors: {
  custom: {
    50: '#8d64a2',
    500: '#5b267b',
    950: '#000000',
  },
}
SCSS
$custom: #5b267b;
$custom-light: #8d64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b267b",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 277.412,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38671,
    "c": 0.14158,
    "h": 310
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#5B267B
secondary
#73AD50
accent
#DC4C82
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B267B

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

Preview Lab → · Contrast checker → · Palette generator →

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