#5B2188#5B2188

#5B2188 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.162 H 305.7°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5B2188
RGBrgb(91, 33, 136)
HSLhsl(274, 61%, 33%)
HSVhsv(274, 76%, 53%)
CMYKcmyk(33.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(26.99, 45.12, -46.33)
CIE-LCHlch(26.99, 64.67, 314.24°)
OKLaboklab(39.08% 0.0947 -0.1317)
OKLCHoklch(39.08% 0.162 305.7)
XYZxyz(9.3012, 5.0895, 23.7802)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2188 #4E8821
analogous
#272188 #5B2188 #882181
triadic
#5B2188 #885B21 #21885B
tetradic
#5B2188 #882721 #4E8821 #218188
square
#5B2188 #882721 #4E8821 #218188
split-complementary
#5B2188 #818821 #218827
monochromatic
#190925 #3A1557 #5B2188 #7C2DB9 #9A4FD4

Accessibility & contrast

On white

10.41
#5B2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2188
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2188#FFFFFF#000000##FFFFFF
##5B21881.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#533A53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b2188;
/* rgb */ color: rgb(91, 33, 136);
/* oklch */ color: oklch(39.1% 0.162 305.7);
Tailwind
colors: {
  custom: {
    50: '#8e62ab',
    500: '#5b2188',
    950: '#000000',
  },
}
SCSS
$custom: #5b2188;
$custom-light: #8e62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2188",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 273.786,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3908,
    "c": 0.16223,
    "h": 305.7
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#5B2188
secondary
#7CB84D
accent
#E4448A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2188

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

Preview Lab → · Contrast checker → · Palette generator →

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