#522FA8#522FA8

#522FA8 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.181 H 289.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#522FA8
RGBrgb(82, 47, 168)
HSLhsl(257, 56%, 42%)
HSVhsv(257, 72%, 66%)
CMYKcmyk(51.2%, 72%, 0%, 34.1%)
CIE-LABlab(31.00, 45.14, -59.41)
CIE-LCHlch(31.00, 74.61, 307.22°)
OKLaboklab(42.51% 0.0609 -0.1706)
OKLCHoklch(42.51% 0.181 289.7)
XYZxyz(11.5620, 6.6535, 37.7132)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FA8 #85A82F
analogous
#2F49A8 #522FA8 #8E2FA8
triadic
#522FA8 #A8522F #2FA852
tetradic
#522FA8 #A82F49 #85A82F #2FA88E
square
#522FA8 #A82F49 #85A82F #2FA88E
split-complementary
#522FA8 #A88E2F #49A82F
monochromatic
#231448 #3B2278 #522FA8 #6E48CC #9478D9

Accessibility & contrast

On white

9.01
#522FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#522FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FA8
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FA8#FFFFFF#000000##FFFFFF
##522FA81.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#344F68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522fa8;
/* rgb */ color: rgb(82, 47, 168);
/* oklch */ color: oklch(42.5% 0.181 289.7);
Tailwind
colors: {
  custom: {
    50: '#8b6bc3',
    500: '#522fa8',
    950: '#000000',
  },
}
SCSS
$custom: #522fa8;
$custom-light: #8b6bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#522fa8",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 257.355,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42513,
    "c": 0.18114,
    "h": 289.7
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#522FA8
secondary
#AAC171
accent
#E048B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FA8

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

Preview Lab → · Contrast checker → · Palette generator →

#522FA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva