#522BA8#522BA8

#522BA8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.186 H 290.3°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#522BA8
RGBrgb(82, 43, 168)
HSLhsl(259, 59%, 41%)
HSVhsv(259, 74%, 66%)
CMYKcmyk(51.2%, 74.4%, 0%, 34.1%)
CIE-LABlab(30.27, 47.19, -60.61)
CIE-LCHlch(30.27, 76.81, 307.90°)
OKLaboklab(42% 0.0644 -0.1741)
OKLCHoklch(42% 0.186 290.3)
XYZxyz(11.4094, 6.3483, 37.6624)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA8 #81A82B
analogous
#2B43A8 #522BA8 #912BA8
triadic
#522BA8 #A8522B #2BA852
tetradic
#522BA8 #A82B43 #81A82B #2BA891
square
#522BA8 #A82B43 #81A82B #2BA891
split-complementary
#522BA8 #A8912B #43A82B
monochromatic
#221247 #3A1F77 #522BA8 #6E42CF #9372DB

Accessibility & contrast

On white

9.25
#522BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#522BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BA8
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA8#FFFFFF#000000##FFFFFF
##522BA81.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#344D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ba8;
/* rgb */ color: rgb(82, 43, 168);
/* oklch */ color: oklch(42.0% 0.186 290.3);
Tailwind
colors: {
  custom: {
    50: '#8b68c3',
    500: '#522ba8',
    950: '#000000',
  },
}
SCSS
$custom: #522ba8;
$custom-light: #8b68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba8",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 258.72,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41997,
    "c": 0.18561,
    "h": 290.3
  },
  "luminance": 0.06349
}

Semantic roles & 50–950 ramp

primary
#522BA8
secondary
#A8C26C
accent
#E245B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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