#5B269A#5B269A

#5B269A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.176 H 299.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5B269A
RGBrgb(91, 38, 154)
HSLhsl(267, 60%, 38%)
HSVhsv(267, 75%, 60%)
CMYKcmyk(40.9%, 75.3%, 0%, 39.6%)
CIE-LABlab(29.27, 47.34, -53.72)
CIE-LCHlch(29.27, 71.61, 311.39°)
OKLaboklab(41.15% 0.0858 -0.1535)
OKLCHoklch(41.15% 0.176 299.2)
XYZxyz(10.8388, 5.9433, 31.1417)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B269A #659A26
analogous
#262B9A #5B269A #95269A
triadic
#5B269A #9A5B26 #269A5B
tetradic
#5B269A #9A262B #659A26 #269A95
square
#5B269A #9A262B #659A26 #269A95
split-complementary
#5B269A #9A9526 #2B9A26
monochromatic
#210E38 #3E1A69 #5B269A #7832CB #9862D8

Accessibility & contrast

On white

9.60
#5B269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B269A
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B269A#FFFFFF#000000##FFFFFF
##5B269A1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4C445E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b269a;
/* rgb */ color: rgb(91, 38, 154);
/* oklch */ color: oklch(41.2% 0.176 299.2);
Tailwind
colors: {
  custom: {
    50: '#8f66b9',
    500: '#5b269a',
    950: '#000000',
  },
}
SCSS
$custom: #5b269a;
$custom-light: #8f66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b269a",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 267.414,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41152,
    "c": 0.17588,
    "h": 299.2
  },
  "luminance": 0.05943
}

Semantic roles & 50–950 ramp

primary
#5B269A
secondary
#92BE5E
accent
#E4449B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B269A

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

Preview Lab → · Contrast checker → · Palette generator →

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