#5B3095#5B3095

#5B3095 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.158 H 299.0°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5B3095
RGBrgb(91, 48, 149)
HSLhsl(266, 51%, 39%)
HSVhsv(266, 68%, 58%)
CMYKcmyk(38.9%, 67.8%, 0%, 41.6%)
CIE-LABlab(30.66, 41.02, -48.40)
CIE-LCHlch(30.66, 63.45, 310.28°)
OKLaboklab(42.02% 0.0764 -0.1379)
OKLCHoklch(42.02% 0.158 299)
XYZxyz(10.7948, 6.5078, 29.1154)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3095 #6A9530
analogous
#303795 #5B3095 #8D3095
triadic
#5B3095 #955B30 #30955B
tetradic
#5B3095 #953037 #6A9530 #30958D
square
#5B3095 #953037 #6A9530 #30958D
split-complementary
#5B3095 #958D30 #379530
monochromatic
#221238 #3F2167 #5B3095 #7841C2 #986FD1

Accessibility & contrast

On white

9.12
#5B3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3095
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3095#FFFFFF#000000##FFFFFF
##5B30951.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#4E475E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b3095;
/* rgb */ color: rgb(91, 48, 149);
/* oklch */ color: oklch(42.0% 0.158 299.0);
Tailwind
colors: {
  custom: {
    50: '#8e6bb5',
    500: '#5b3095',
    950: '#000000',
  },
}
SCSS
$custom: #5b3095;
$custom-light: #8e6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3095",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 265.545,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42016,
    "c": 0.15767,
    "h": 299
  },
  "luminance": 0.06508
}

Semantic roles & 50–950 ramp

primary
#5B3095
secondary
#96B869
accent
#DB4D9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3095

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

Preview Lab → · Contrast checker → · Palette generator →

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