#522F9B#522F9B

#522F9B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.165 H 292.5°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#522F9B
RGBrgb(82, 47, 155)
HSLhsl(259, 53%, 40%)
HSVhsv(259, 70%, 61%)
CMYKcmyk(47.1%, 69.7%, 0%, 39.2%)
CIE-LABlab(29.89, 41.41, -53.36)
CIE-LCHlch(29.89, 67.54, 307.82°)
OKLaboklab(41.38% 0.0634 -0.1528)
OKLCHoklch(41.38% 0.165 292.5)
XYZxyz(10.4109, 6.1931, 31.6508)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F9B #789B2F
analogous
#2F429B #522F9B #882F9B
triadic
#522F9B #9B522F #2F9B52
tetradic
#522F9B #9B2F42 #789B2F #2F9B88
square
#522F9B #9B2F42 #789B2F #2F9B88
split-complementary
#522F9B #9B882F #429B2F
monochromatic
#20133D #39216C #522F9B #6C42C6 #9171D4

Accessibility & contrast

On white

9.38
#522F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#522F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F9B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F9B#FFFFFF#000000##FFFFFF
##522F9B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#3C4A61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522f9b;
/* rgb */ color: rgb(82, 47, 155);
/* oklch */ color: oklch(41.4% 0.165 292.5);
Tailwind
colors: {
  custom: {
    50: '#896ab9',
    500: '#522f9b',
    950: '#000000',
  },
}
SCSS
$custom: #522f9b;
$custom-light: #896ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#522f9b",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 259.444,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41378,
    "c": 0.16544,
    "h": 292.5
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

primary
#522F9B
secondary
#A1BB6A
accent
#DD4BAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #522F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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