#5228AD#5228AD

#5228AD is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.194 H 289.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5228AD
RGBrgb(82, 40, 173)
HSLhsl(259, 62%, 42%)
HSVhsv(259, 77%, 68%)
CMYKcmyk(52.6%, 76.9%, 0%, 32.2%)
CIE-LABlab(30.23, 50.04, -63.69)
CIE-LCHlch(30.23, 81.00, 308.15°)
OKLaboklab(42.1% 0.0655 -0.1831)
OKLCHoklch(42.1% 0.194 289.7)
XYZxyz(11.7791, 6.3280, 40.1278)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228AD #83AD28
analogous
#2841AD #5228AD #9528AD
triadic
#5228AD #AD5228 #28AD52
tetradic
#5228AD #AD2841 #83AD28 #28AD95
square
#5228AD #AD2841 #83AD28 #28AD95
split-complementary
#5228AD #AD9528 #41AD28
monochromatic
#23114A #3A1D7B #5228AD #6E3FD3 #9471DE

Accessibility & contrast

On white

9.27
#5228AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5228AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228AD
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228AD#FFFFFF#000000##FFFFFF
##5228AD1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#304D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5228ad;
/* rgb */ color: rgb(82, 40, 173);
/* oklch */ color: oklch(42.1% 0.194 289.7);
Tailwind
colors: {
  custom: {
    50: '#8c67c7',
    500: '#5228ad',
    950: '#000000',
  },
}
SCSS
$custom: #5228ad;
$custom-light: #8c67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5228ad",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 258.947,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42103,
    "c": 0.19446,
    "h": 289.7
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#5228AD
secondary
#A9C56C
accent
#E642B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5228AD

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

Preview Lab → · Contrast checker → · Palette generator →

#5228AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva