#5B2283#5B2283

#5B2283 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.156 H 307.4°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5B2283
RGBrgb(91, 34, 131)
HSLhsl(275, 59%, 32%)
HSVhsv(275, 74%, 51%)
CMYKcmyk(30.5%, 74%, 0%, 48.6%)
CIE-LABlab(26.75, 43.46, -43.58)
CIE-LCHlch(26.75, 61.54, 314.92°)
OKLaboklab(38.79% 0.0946 -0.1237)
OKLCHoklch(38.79% 0.156 307.4)
XYZxyz(8.9823, 5.0070, 21.9616)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2283 #4A8322
analogous
#2B2283 #5B2283 #83227A
triadic
#5B2283 #835B22 #22835B
tetradic
#5B2283 #832B22 #4A8322 #227A83
square
#5B2283 #832B22 #4A8322 #227A83
split-complementary
#5B2283 #7A8322 #22832B
monochromatic
#170922 #391552 #5B2283 #7D2FB4 #9B4ED1

Accessibility & contrast

On white

10.49
#5B2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2283
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2283#FFFFFF#000000##FFFFFF
##5B22831.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#014081
Tritanopia (blue-blind)
#543850
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2283;
/* rgb */ color: rgb(91, 34, 131);
/* oklch */ color: oklch(38.8% 0.156 307.4);
Tailwind
colors: {
  custom: {
    50: '#8d63a8',
    500: '#5b2283',
    950: '#000000',
  },
}
SCSS
$custom: #5b2283;
$custom-light: #8d63a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2283",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 275.258,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38791,
    "c": 0.15569,
    "h": 307.4
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#5B2283
secondary
#77B44C
accent
#E24686
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2283

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

Preview Lab → · Contrast checker → · Palette generator →

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