#5B268B#5B268B

#5B268B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.159 H 303.9°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5B268B
RGBrgb(91, 38, 139)
HSLhsl(271, 57%, 35%)
HSVhsv(271, 73%, 55%)
CMYKcmyk(34.5%, 72.7%, 0%, 45.5%)
CIE-LABlab(28.05, 43.54, -46.48)
CIE-LCHlch(28.05, 63.68, 313.13°)
OKLaboklab(39.9% 0.0889 -0.1322)
OKLCHoklch(39.9% 0.159 303.9)
XYZxyz(9.6666, 5.4745, 24.9685)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B268B #568B26
analogous
#29268B #5B268B #8B2689
triadic
#5B268B #8B5B26 #268B5B
tetradic
#5B268B #8B2926 #568B26 #26898B
square
#5B268B #8B2926 #568B26 #26898B
split-complementary
#5B268B #898B26 #268B29
monochromatic
#1C0C2B #3C195B #5B268B #7A33BB #995AD2

Accessibility & contrast

On white

10.02
#5B268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B268B
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B268B#FFFFFF#000000##FFFFFF
##5B268B1.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#523E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b268b;
/* rgb */ color: rgb(91, 38, 139);
/* oklch */ color: oklch(39.9% 0.159 303.9);
Tailwind
colors: {
  custom: {
    50: '#8e65ae',
    500: '#5b268b',
    950: '#000000',
  },
}
SCSS
$custom: #5b268b;
$custom-light: #8e65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b268b",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 271.485,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39904,
    "c": 0.15934,
    "h": 303.9
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

primary
#5B268B
secondary
#84B756
accent
#E04790
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B268B

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

Preview Lab → · Contrast checker → · Palette generator →

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