#5B267C#5B267C

#5B267C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.143 H 309.6°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5B267C
RGBrgb(91, 38, 124)
HSLhsl(277, 53%, 32%)
HSVhsv(277, 69%, 49%)
CMYKcmyk(26.6%, 69.4%, 0%, 51.4%)
CIE-LABlab(26.92, 39.85, -38.90)
CIE-LCHlch(26.92, 55.69, 315.69°)
OKLaboklab(38.75% 0.091 -0.1099)
OKLCHoklch(38.75% 0.143 309.6)
XYZxyz(8.6449, 5.0658, 19.5873)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B267C #477C26
analogous
#30267C #5B267C #7C2672
triadic
#5B267C #7C5B26 #267C5B
tetradic
#5B267C #7C3026 #477C26 #26727C
square
#5B267C #7C3026 #477C26 #26727C
split-complementary
#5B267C #727C26 #267C30
monochromatic
#16091E #39184D #5B267C #7D34AB #9C52CA

Accessibility & contrast

On white

10.43
#5B267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B267C
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B267C#FFFFFF#000000##FFFFFF
##5B267C1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#18407A
Tritanopia (blue-blind)
#56384D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b267c;
/* rgb */ color: rgb(91, 38, 124);
/* oklch */ color: oklch(38.7% 0.143 309.6);
Tailwind
colors: {
  custom: {
    50: '#8d65a2',
    500: '#5b267c',
    950: '#000000',
  },
}
SCSS
$custom: #5b267c;
$custom-light: #8d65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b267c",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 276.977,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38745,
    "c": 0.14269,
    "h": 309.6
  },
  "luminance": 0.05066
}

Semantic roles & 50–950 ramp

primary
#5B267C
secondary
#74AE50
accent
#DC4B83
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B267C

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

Preview Lab → · Contrast checker → · Palette generator →

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