#5B267A#5B267A

#5B267A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.140 H 310.4°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5B267A
RGBrgb(91, 38, 122)
HSLhsl(278, 53%, 31%)
HSVhsv(278, 69%, 48%)
CMYKcmyk(25.4%, 68.9%, 0%, 52.2%)
CIE-LABlab(26.78, 39.37, -37.86)
CIE-LCHlch(26.78, 54.63, 316.12°)
OKLaboklab(38.6% 0.0911 -0.1069)
OKLCHoklch(38.6% 0.14 310.4)
XYZxyz(8.5197, 5.0157, 18.9279)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B267A #457A26
analogous
#31267A #5B267A #7A266F
triadic
#5B267A #7A5B26 #267A5B
tetradic
#5B267A #7A3126 #457A26 #266F7A
square
#5B267A #7A3126 #457A26 #266F7A
split-complementary
#5B267A #6F7A26 #267A31
monochromatic
#15091D #38174B #5B267A #7E35A9 #9D51C9

Accessibility & contrast

On white

10.48
#5B267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B267A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B267A#FFFFFF#000000##FFFFFF
##5B267A1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#1B4078
Tritanopia (blue-blind)
#57374C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b267a;
/* rgb */ color: rgb(91, 38, 122);
/* oklch */ color: oklch(38.6% 0.140 310.4);
Tailwind
colors: {
  custom: {
    50: '#8c64a1',
    500: '#5b267a',
    950: '#000000',
  },
}
SCSS
$custom: #5b267a;
$custom-light: #8c64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b267a",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 277.857,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38598,
    "c": 0.14048,
    "h": 310.4
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#5B267A
secondary
#72AC50
accent
#DC4C81
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B267A

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

Preview Lab → · Contrast checker → · Palette generator →

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