#5B267E#5B267E

#5B267E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.145 H 308.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5B267E
RGBrgb(91, 38, 126)
HSLhsl(276, 54%, 32%)
HSVhsv(276, 70%, 49%)
CMYKcmyk(27.8%, 69.8%, 0%, 50.6%)
CIE-LABlab(27.07, 40.33, -39.93)
CIE-LCHlch(27.07, 56.76, 315.29°)
OKLaboklab(38.89% 0.0908 -0.113)
OKLCHoklch(38.89% 0.145 308.8)
XYZxyz(8.7726, 5.1169, 20.2601)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B267E #497E26
analogous
#2F267E #5B267E #7E2675
triadic
#5B267E #7E5B26 #267E5B
tetradic
#5B267E #7E2F26 #497E26 #26757E
square
#5B267E #7E2F26 #497E26 #26757E
split-complementary
#5B267E #757E26 #267E2F
monochromatic
#170A20 #39184F #5B267E #7D34AD #9B53CB

Accessibility & contrast

On white

10.38
#5B267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B267E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B267E#FFFFFF#000000##FFFFFF
##5B267E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#15417C
Tritanopia (blue-blind)
#56394F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b267e;
/* rgb */ color: rgb(91, 38, 126);
/* oklch */ color: oklch(38.9% 0.145 308.8);
Tailwind
colors: {
  custom: {
    50: '#8d65a4',
    500: '#5b267e',
    950: '#000000',
  },
}
SCSS
$custom: #5b267e;
$custom-light: #8d65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b267e",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 276.136,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38894,
    "c": 0.14492,
    "h": 308.8
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#5B267E
secondary
#76B050
accent
#DD4B85
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B267E

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

Preview Lab → · Contrast checker → · Palette generator →

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