#5B338E#5B338E

#5B338E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.145 H 300.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5B338E
RGBrgb(91, 51, 142)
HSLhsl(266, 47%, 38%)
HSVhsv(266, 64%, 56%)
CMYKcmyk(35.9%, 64.1%, 0%, 44.3%)
CIE-LABlab(30.75, 37.50, -43.96)
CIE-LCHlch(30.75, 57.78, 310.46°)
OKLaboklab(41.92% 0.0735 -0.1249)
OKLCHoklch(41.92% 0.145 300.5)
XYZxyz(10.3795, 6.5447, 26.3024)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B338E #668E33
analogous
#33388E #5B338E #88338E
triadic
#5B338E #8E5B33 #338E5B
tetradic
#5B338E #8E3338 #668E33 #338E88
square
#5B338E #8E3338 #668E33 #338E88
split-complementary
#5B338E #8E8833 #388E33
monochromatic
#211334 #3E2361 #5B338E #7843BB #9870CC

Accessibility & contrast

On white

9.09
#5B338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B338E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B338E#FFFFFF#000000##FFFFFF
##5B338E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#10488C
Tritanopia (blue-blind)
#50475B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b338e;
/* rgb */ color: rgb(91, 51, 142);
/* oklch */ color: oklch(41.9% 0.145 300.5);
Tailwind
colors: {
  custom: {
    50: '#8d6db0',
    500: '#5b338e',
    950: '#000000',
  },
}
SCSS
$custom: #5b338e;
$custom-light: #8d6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b338e",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 266.374,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41915,
    "c": 0.1449,
    "h": 300.5
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#5B338E
secondary
#93B469
accent
#D7519C
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B338E

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

Preview Lab → · Contrast checker → · Palette generator →

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