#5223B2#5223B2

#5223B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.205 H 289.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5223B2
RGBrgb(82, 35, 178)
HSLhsl(260, 67%, 42%)
HSVhsv(260, 80%, 70%)
CMYKcmyk(53.9%, 80.3%, 0%, 30.2%)
CIE-LABlab(29.94, 53.63, -67.16)
CIE-LCHlch(29.94, 85.94, 308.61°)
OKLaboklab(42.05% 0.0675 -0.1932)
OKLCHoklch(42.05% 0.205 289.3)
XYZxyz(12.1142, 6.2097, 42.6711)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223B2 #83B223
analogous
#233CB2 #5223B2 #9A23B2
triadic
#5223B2 #B25223 #23B252
tetradic
#5223B2 #B2233C #83B223 #23B29A
square
#5223B2 #B2233C #83B223 #23B29A
split-complementary
#5223B2 #B29A23 #3CB223
monochromatic
#230F4C #3A197F #5223B2 #6E3AD8 #946DE2

Accessibility & contrast

On white

9.37
#5223B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5223B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223B2
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223B2#FFFFFF#000000##FFFFFF
##5223B21.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#2C4D6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5223b2;
/* rgb */ color: rgb(82, 35, 178);
/* oklch */ color: oklch(42.0% 0.205 289.3);
Tailwind
colors: {
  custom: {
    50: '#8d65ca',
    500: '#5223b2',
    950: '#000000',
  },
}
SCSS
$custom: #5223b2;
$custom-light: #8d65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5223b2",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 259.72,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42047,
    "c": 0.20464,
    "h": 289.3
  },
  "luminance": 0.0621
}

Semantic roles & 50–950 ramp

primary
#5223B2
secondary
#A9C968
accent
#EA3EB1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5223B2

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

Preview Lab → · Contrast checker → · Palette generator →

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