#5B268F#5B268F

#5B268F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.164 H 302.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5B268F
RGBrgb(91, 38, 143)
HSLhsl(270, 58%, 35%)
HSVhsv(270, 73%, 56%)
CMYKcmyk(36.4%, 73.4%, 0%, 43.9%)
CIE-LABlab(28.36, 44.54, -48.44)
CIE-LCHlch(28.36, 65.80, 312.60°)
OKLaboklab(40.23% 0.0882 -0.138)
OKLCHoklch(40.23% 0.164 302.6)
XYZxyz(9.9642, 5.5935, 26.5360)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B268F #5A8F26
analogous
#27268F #5B268F #8F268E
triadic
#5B268F #8F5B26 #268F5B
tetradic
#5B268F #8F2726 #5A8F26 #268E8F
square
#5B268F #8F2726 #5A8F26 #268E8F
split-complementary
#5B268F #8E8F26 #268F27
monochromatic
#1D0C2E #3C195F #5B268F #7A33BF #985CD4

Accessibility & contrast

On white

9.91
#5B268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B268F
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B268F#FFFFFF#000000##FFFFFF
##5B268F1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#503F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b268f;
/* rgb */ color: rgb(91, 38, 143);
/* oklch */ color: oklch(40.2% 0.164 302.6);
Tailwind
colors: {
  custom: {
    50: '#8e65b1',
    500: '#5b268f',
    950: '#000000',
  },
}
SCSS
$custom: #5b268f;
$custom-light: #8e65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b268f",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 270.286,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40229,
    "c": 0.16377,
    "h": 302.6
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#5B268F
secondary
#88B958
accent
#E14793
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B268F

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

Preview Lab → · Contrast checker → · Palette generator →

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