#5228A2#5228A2

#5228A2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.182 H 292.1°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5228A2
RGBrgb(82, 40, 162)
HSLhsl(261, 60%, 40%)
HSVhsv(261, 75%, 64%)
CMYKcmyk(49.4%, 75.3%, 0%, 36.5%)
CIE-LABlab(29.21, 47.00, -58.73)
CIE-LCHlch(29.21, 75.22, 308.67°)
OKLaboklab(41.08% 0.0685 -0.1685)
OKLCHoklch(41.08% 0.182 292.1)
XYZxyz(10.7582, 5.9197, 34.7512)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228A2 #78A228
analogous
#283BA2 #5228A2 #8F28A2
triadic
#5228A2 #A25228 #28A252
tetradic
#5228A2 #A2283B #78A228 #28A28F
square
#5228A2 #A2283B #78A228 #28A28F
split-complementary
#5228A2 #A28F28 #3BA228
monochromatic
#201040 #391C71 #5228A2 #6C39CE #916ADA

Accessibility & contrast

On white

9.62
#5228A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5228A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228A2
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228A2#FFFFFF#000000##FFFFFF
##5228A21.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#384963
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5228a2;
/* rgb */ color: rgb(82, 40, 162);
/* oklch */ color: oklch(41.1% 0.182 292.1);
Tailwind
colors: {
  custom: {
    50: '#8b66bf',
    500: '#5228a2',
    950: '#000000',
  },
}
SCSS
$custom: #5228a2;
$custom-light: #8b66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5228a2",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 260.656,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41079,
    "c": 0.18193,
    "h": 292.1
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

primary
#5228A2
secondary
#A1C165
accent
#E444AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5228A2

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

Preview Lab → · Contrast checker → · Palette generator →

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