#522F9F#522F9F

#522F9F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.170 H 291.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#522F9F
RGBrgb(82, 47, 159)
HSLhsl(259, 54%, 40%)
HSVhsv(259, 70%, 62%)
CMYKcmyk(48.4%, 70.4%, 0%, 37.6%)
CIE-LABlab(30.23, 42.56, -55.24)
CIE-LCHlch(30.23, 69.73, 307.61°)
OKLaboklab(41.72% 0.0627 -0.1583)
OKLCHoklch(41.72% 0.17 291.6)
XYZxyz(10.7524, 6.3297, 33.4494)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F9F #7C9F2F
analogous
#2F449F #522F9F #8A2F9F
triadic
#522F9F #9F522F #2F9F52
tetradic
#522F9F #9F2F44 #7C9F2F #2F9F8A
square
#522F9F #9F2F44 #7C9F2F #2F9F8A
split-complementary
#522F9F #9F8A2F #449F2F
monochromatic
#211341 #3A2170 #522F9F #6D44C8 #9273D6

Accessibility & contrast

On white

9.27
#522F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522F9F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F9F#FFFFFF#000000##FFFFFF
##522F9F1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#3A4B63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522f9f;
/* rgb */ color: rgb(82, 47, 159);
/* oklch */ color: oklch(41.7% 0.170 291.6);
Tailwind
colors: {
  custom: {
    50: '#8a6abc',
    500: '#522f9f',
    950: '#000000',
  },
}
SCSS
$custom: #522f9f;
$custom-light: #8a6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#522f9f",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 258.75,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41722,
    "c": 0.17031,
    "h": 291.6
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#522F9F
secondary
#A4BD6D
accent
#DE4AB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #522F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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