#5B269F#5B269F

#5B269F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.181 H 297.8°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5B269F
RGBrgb(91, 38, 159)
HSLhsl(266, 61%, 39%)
HSVhsv(266, 76%, 62%)
CMYKcmyk(42.8%, 76.1%, 0%, 37.6%)
CIE-LABlab(29.70, 48.63, -56.07)
CIE-LCHlch(29.70, 74.22, 310.93°)
OKLaboklab(41.59% 0.0846 -0.1604)
OKLCHoklch(41.59% 0.181 297.8)
XYZxyz(11.2639, 6.1134, 33.3807)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B269F #6A9F26
analogous
#262D9F #5B269F #97269F
triadic
#5B269F #9F5B26 #269F5B
tetradic
#5B269F #9F262D #6A9F26 #269F97
square
#5B269F #9F262D #6A9F26 #269F97
split-complementary
#5B269F #9F9726 #2D9F26
monochromatic
#220E3C #3F1A6E #5B269F #7834CE #9865DA

Accessibility & contrast

On white

9.45
#5B269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B269F
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B269F#FFFFFF#000000##FFFFFF
##5B269F1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#4A4661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b269f;
/* rgb */ color: rgb(91, 38, 159);
/* oklch */ color: oklch(41.6% 0.181 297.8);
Tailwind
colors: {
  custom: {
    50: '#9066bc',
    500: '#5b269f',
    950: '#000000',
  },
}
SCSS
$custom: #5b269f;
$custom-light: #9066bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b269f",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 266.281,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41585,
    "c": 0.18136,
    "h": 297.8
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#5B269F
secondary
#96C061
accent
#E5439E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B269F

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

Preview Lab → · Contrast checker → · Palette generator →

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