#5B269B#5B269B

#5B269B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.177 H 298.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5B269B
RGBrgb(91, 38, 155)
HSLhsl(267, 61%, 38%)
HSVhsv(267, 75%, 61%)
CMYKcmyk(41.3%, 75.5%, 0%, 39.2%)
CIE-LABlab(29.35, 47.60, -54.19)
CIE-LCHlch(29.35, 72.13, 311.29°)
OKLaboklab(41.24% 0.0856 -0.1549)
OKLCHoklch(41.24% 0.177 298.9)
XYZxyz(10.9224, 5.9768, 31.5822)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B269B #669B26
analogous
#262C9B #5B269B #95269B
triadic
#5B269B #9B5B26 #269B5B
tetradic
#5B269B #9B262C #669B26 #269B95
square
#5B269B #9B262C #669B26 #269B95
split-complementary
#5B269B #9B9526 #2C9B26
monochromatic
#210E39 #3E1A6A #5B269B #7832CC #9863D9

Accessibility & contrast

On white

9.57
#5B269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B269B
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B269B#FFFFFF#000000##FFFFFF
##5B269B1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4B445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b269b;
/* rgb */ color: rgb(91, 38, 155);
/* oklch */ color: oklch(41.2% 0.177 298.9);
Tailwind
colors: {
  custom: {
    50: '#9066b9',
    500: '#5b269b',
    950: '#000000',
  },
}
SCSS
$custom: #5b269b;
$custom-light: #9066b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b269b",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 267.179,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41238,
    "c": 0.17698,
    "h": 298.9
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#5B269B
secondary
#93BE5F
accent
#E4449B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B269B

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

Preview Lab → · Contrast checker → · Palette generator →

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