#5223A7#5223A7

#5223A7 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.193 H 291.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5223A7
RGBrgb(82, 35, 167)
HSLhsl(261, 65%, 40%)
HSVhsv(261, 79%, 65%)
CMYKcmyk(50.9%, 79%, 0%, 34.5%)
CIE-LABlab(28.86, 50.68, -62.32)
CIE-LCHlch(28.86, 80.32, 309.12°)
OKLaboklab(40.98% 0.071 -0.179)
OKLCHoklch(40.98% 0.193 291.6)
XYZxyz(11.0538, 5.7855, 37.0860)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223A7 #78A723
analogous
#2336A7 #5223A7 #9423A7
triadic
#5223A7 #A75223 #23A752
tetradic
#5223A7 #A72336 #78A723 #23A794
square
#5223A7 #A72336 #78A723 #23A794
split-complementary
#5223A7 #A79423 #36A723
monochromatic
#200E42 #391874 #5223A7 #6C33D4 #9166DF

Accessibility & contrast

On white

9.73
#5223A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5223A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223A7
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223A7#FFFFFF#000000##FFFFFF
##5223A71.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#354965
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5223a7;
/* rgb */ color: rgb(82, 35, 167);
/* oklch */ color: oklch(41.0% 0.193 291.6);
Tailwind
colors: {
  custom: {
    50: '#8c64c2',
    500: '#5223a7',
    950: '#000000',
  },
}
SCSS
$custom: #5223a7;
$custom-light: #8c64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5223a7",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 261.364,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4098,
    "c": 0.1926,
    "h": 291.6
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#5223A7
secondary
#A1C461
accent
#E83FAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5223A7

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

Preview Lab → · Contrast checker → · Palette generator →

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