#5223B1#5223B1

#5223B1 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.204 H 289.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5223B1
RGBrgb(82, 35, 177)
HSLhsl(260, 67%, 42%)
HSVhsv(260, 80%, 69%)
CMYKcmyk(53.7%, 80.2%, 0%, 30.6%)
CIE-LABlab(29.84, 53.36, -66.73)
CIE-LCHlch(29.84, 85.44, 308.65°)
OKLaboklab(41.95% 0.0679 -0.1919)
OKLCHoklch(41.95% 0.204 289.5)
XYZxyz(12.0142, 6.1697, 42.1443)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223B1 #82B123
analogous
#233BB1 #5223B1 #9923B1
triadic
#5223B1 #B15223 #23B152
tetradic
#5223B1 #B1233B #82B123 #23B199
square
#5223B1 #B1233B #82B123 #23B199
split-complementary
#5223B1 #B19923 #3BB123
monochromatic
#230F4B #3A197E #5223B1 #6E39D8 #936CE2

Accessibility & contrast

On white

9.40
#5223B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5223B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223B1
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223B1#FFFFFF#000000##FFFFFF
##5223B11.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#2D4D6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5223b1;
/* rgb */ color: rgb(82, 35, 177);
/* oklch */ color: oklch(41.9% 0.204 289.5);
Tailwind
colors: {
  custom: {
    50: '#8d65ca',
    500: '#5223b1',
    950: '#000000',
  },
}
SCSS
$custom: #5223b1;
$custom-light: #8d65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5223b1",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 259.859,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41949,
    "c": 0.20355,
    "h": 289.5
  },
  "luminance": 0.0617
}

Semantic roles & 50–950 ramp

primary
#5223B1
secondary
#A8C868
accent
#EA3EB1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5223B1

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

Preview Lab → · Contrast checker → · Palette generator →

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