#5223E2#5223E2

#5223E2 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 47.0% C 0.256 H 281.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5223E2
RGBrgb(82, 35, 226)
HSLhsl(255, 77%, 51%)
HSVhsv(255, 85%, 89%)
CMYKcmyk(63.7%, 84.5%, 0%, 11.4%)
CIE-LABlab(34.97, 66.37, -86.87)
CIE-LCHlch(34.97, 109.32, 307.38°)
OKLaboklab(47% 0.051 -0.2506)
OKLCHoklch(47% 0.256 281.5)
XYZxyz(17.8039, 8.4855, 72.6364)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223E2 #B3E223
analogous
#2353E2 #5223E2 #B123E2
triadic
#5223E2 #E25223 #23E252
tetradic
#5223E2 #E22353 #B3E223 #23E2B1
square
#5223E2 #E22353 #B3E223 #23E2B1
split-complementary
#5223E2 #E2B123 #53E223
monochromatic
#2A107A #3D17B1 #5223E2 #7D59E9 #A78FF0

Accessibility & contrast

On white

7.79
#5223E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5223E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223E2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223E2#FFFFFF#000000##FFFFFF
##5223E21.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058E7
Deuteranopia (green-blind)
#004BDF
Tritanopia (blue-blind)
#006287
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5223e2;
/* rgb */ color: rgb(82, 35, 226);
/* oklch */ color: oklch(47.0% 0.256 281.5);
Tailwind
colors: {
  custom: {
    50: '#9568ed',
    500: '#5223e2',
    950: '#000000',
  },
}
SCSS
$custom: #5223e2;
$custom-light: #9568ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5223e2",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 226
  },
  "hsl": {
    "h": 254.764,
    "s": 76.707,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46996,
    "c": 0.25575,
    "h": 281.5
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#5223E2
secondary
#C6DB86
accent
#F335C4
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5223E2

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

Preview Lab → · Contrast checker → · Palette generator →

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