#522F94#522F94

#522F94 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.157 H 294.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#522F94
RGBrgb(82, 47, 148)
HSLhsl(261, 52%, 38%)
HSVhsv(261, 68%, 58%)
CMYKcmyk(44.6%, 68.2%, 0%, 42%)
CIE-LABlab(29.32, 39.42, -50.01)
CIE-LCHlch(29.32, 63.68, 308.25°)
OKLaboklab(40.79% 0.0645 -0.143)
OKLCHoklch(40.79% 0.157 294.3)
XYZxyz(9.8400, 5.9647, 28.6441)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F94 #71942F
analogous
#2F3E94 #522F94 #842F94
triadic
#522F94 #94522F #2F9452
tetradic
#522F94 #942F3E #71942F #2F9484
square
#522F94 #942F3E #71942F #2F9484
split-complementary
#522F94 #94842F #3E942F
monochromatic
#1F1137 #382066 #522F94 #6C3EC2 #8F6DD1

Accessibility & contrast

On white

9.58
#522F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#522F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F94
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F94#FFFFFF#000000##FFFFFF
##522F941.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#40475D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522f94;
/* rgb */ color: rgb(82, 47, 148);
/* oklch */ color: oklch(40.8% 0.157 294.3);
Tailwind
colors: {
  custom: {
    50: '#886ab4',
    500: '#522f94',
    950: '#000000',
  },
}
SCSS
$custom: #522f94;
$custom-light: #886ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#522f94",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 260.792,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4079,
    "c": 0.15684,
    "h": 294.3
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#522F94
secondary
#9CB867
accent
#DB4DAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522F94

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

Preview Lab → · Contrast checker → · Palette generator →

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