#522FB3#522FB3

#522FB3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.194 H 287.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#522FB3
RGBrgb(82, 47, 179)
HSLhsl(256, 58%, 44%)
HSVhsv(256, 74%, 70%)
CMYKcmyk(54.2%, 73.7%, 0%, 29.8%)
CIE-LABlab(31.99, 48.30, -64.38)
CIE-LCHlch(31.99, 80.48, 306.88°)
OKLaboklab(43.51% 0.0585 -0.1851)
OKLCHoklch(43.51% 0.194 287.5)
XYZxyz(12.6305, 7.0809, 43.3403)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB3 #90B32F
analogous
#2F4EB3 #522FB3 #942FB3
triadic
#522FB3 #B3522F #2FB352
tetradic
#522FB3 #B32F4E #90B32F #2FB394
square
#522FB3 #B32F4E #90B32F #2FB394
split-complementary
#522FB3 #B3942F #4EB32F
monochromatic
#261652 #3C2283 #522FB3 #714FD1 #987FDD

Accessibility & contrast

On white

8.69
#522FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#522FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB3
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB3#FFFFFF#000000##FFFFFF
##522FB31.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#2A536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522fb3;
/* rgb */ color: rgb(82, 47, 179);
/* oklch */ color: oklch(43.5% 0.194 287.5);
Tailwind
colors: {
  custom: {
    50: '#8d6bcb',
    500: '#522fb3',
    950: '#000000',
  },
}
SCSS
$custom: #522fb3;
$custom-light: #8d6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb3",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 255.909,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43514,
    "c": 0.19416,
    "h": 287.5
  },
  "luminance": 0.07082
}

Semantic roles & 50–950 ramp

primary
#522FB3
secondary
#B1C678
accent
#E246B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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