#5223A0#5223A0

#5223A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.185 H 293.3°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5223A0
RGBrgb(82, 35, 160)
HSLhsl(263, 64%, 38%)
HSVhsv(263, 78%, 63%)
CMYKcmyk(48.8%, 78.1%, 0%, 37.3%)
CIE-LABlab(28.20, 48.80, -59.17)
CIE-LCHlch(28.20, 76.69, 309.52°)
OKLaboklab(40.32% 0.0732 -0.1698)
OKLCHoklch(40.32% 0.185 293.3)
XYZxyz(10.4241, 5.5336, 33.7697)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223A0 #71A023
analogous
#2332A0 #5223A0 #9023A0
triadic
#5223A0 #A05223 #23A052
tetradic
#5223A0 #A02332 #71A023 #23A090
square
#5223A0 #A02332 #71A023 #23A090
split-complementary
#5223A0 #A09023 #32A023
monochromatic
#1F0D3C #38186E #5223A0 #6C2FD1 #8F61DC

Accessibility & contrast

On white

9.97
#5223A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5223A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223A0
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223A0#FFFFFF#000000##FFFFFF
##5223A01.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#3A4661
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5223a0;
/* rgb */ color: rgb(82, 35, 160);
/* oklch */ color: oklch(40.3% 0.185 293.3);
Tailwind
colors: {
  custom: {
    50: '#8b64bd',
    500: '#5223a0',
    950: '#000000',
  },
}
SCSS
$custom: #5223a0;
$custom-light: #8b64bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5223a0",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 262.56,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40318,
    "c": 0.18487,
    "h": 293.3
  },
  "luminance": 0.05534
}

Semantic roles & 50–950 ramp

primary
#5223A0
secondary
#9CC15D
accent
#E741A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5223A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5223A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva