#5B2098#5B2098

#5B2098 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.180 H 300.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5B2098
RGBrgb(91, 32, 152)
HSLhsl(270, 65%, 36%)
HSVhsv(270, 79%, 60%)
CMYKcmyk(40.1%, 78.9%, 0%, 40.4%)
CIE-LABlab(28.18, 49.47, -54.28)
CIE-LCHlch(28.18, 73.44, 312.34°)
OKLaboklab(40.33% 0.0917 -0.1551)
OKLCHoklch(40.33% 0.18 300.6)
XYZxyz(10.4970, 5.5241, 30.2129)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2098 #5D9820
analogous
#202198 #5B2098 #972098
triadic
#5B2098 #985B20 #20985B
tetradic
#5B2098 #982021 #5D9820 #209897
square
#5B2098 #982021 #5D9820 #209897
split-complementary
#5B2098 #989720 #219820
monochromatic
#1E0B33 #3D1565 #5B2098 #792BCB #9857DC

Accessibility & contrast

On white

9.98
#5B2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5B2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2098
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2098#FFFFFF#000000##FFFFFF
##5B20981.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#4D405C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2098;
/* rgb */ color: rgb(91, 32, 152);
/* oklch */ color: oklch(40.3% 0.180 300.6);
Tailwind
colors: {
  custom: {
    50: '#9063b7',
    500: '#5b2098',
    950: '#000000',
  },
}
SCSS
$custom: #5b2098;
$custom-light: #9063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2098",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 269.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40333,
    "c": 0.18018,
    "h": 300.6
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#5B2098
secondary
#8BBF54
accent
#E84095
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2098

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

Preview Lab → · Contrast checker → · Palette generator →

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