#5B269E#5B269E

#5B269E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.180 H 298.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5B269E
RGBrgb(91, 38, 158)
HSLhsl(267, 61%, 38%)
HSVhsv(267, 76%, 62%)
CMYKcmyk(42.4%, 75.9%, 0%, 38%)
CIE-LABlab(29.61, 48.37, -55.60)
CIE-LCHlch(29.61, 73.70, 311.02°)
OKLaboklab(41.5% 0.0849 -0.159)
OKLCHoklch(41.5% 0.18 298.1)
XYZxyz(11.1775, 6.0788, 32.9256)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B269E #699E26
analogous
#262D9E #5B269E #97269E
triadic
#5B269E #9E5B26 #269E5B
tetradic
#5B269E #9E262D #699E26 #269E97
square
#5B269E #9E262D #699E26 #269E97
split-complementary
#5B269E #9E9726 #2D9E26
monochromatic
#220E3B #3F1A6D #5B269E #7833CE #9865DA

Accessibility & contrast

On white

9.48
#5B269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B269E
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B269E#FFFFFF#000000##FFFFFF
##5B269E1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4A4560
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b269e;
/* rgb */ color: rgb(91, 38, 158);
/* oklch */ color: oklch(41.5% 0.180 298.1);
Tailwind
colors: {
  custom: {
    50: '#9066bc',
    500: '#5b269e',
    950: '#000000',
  },
}
SCSS
$custom: #5b269e;
$custom-light: #9066bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b269e",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 266.5,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41498,
    "c": 0.18027,
    "h": 298.1
  },
  "luminance": 0.06079
}

Semantic roles & 50–950 ramp

primary
#5B269E
secondary
#95C060
accent
#E4439D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B269E

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

Preview Lab → · Contrast checker → · Palette generator →

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