#522691#522691

#522691 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.165 H 296.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#522691
RGBrgb(82, 38, 145)
HSLhsl(265, 58%, 36%)
HSVhsv(265, 74%, 57%)
CMYKcmyk(43.4%, 73.8%, 0%, 43.1%)
CIE-LABlab(27.36, 43.34, -51.35)
CIE-LCHlch(27.36, 67.20, 310.16°)
OKLaboklab(39.32% 0.0744 -0.1469)
OKLCHoklch(39.32% 0.165 296.8)
XYZxyz(9.2823, 5.2242, 27.3019)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522691 #659126
analogous
#262F91 #522691 #872691
triadic
#522691 #915226 #269152
tetradic
#522691 #91262F #659126 #269187
square
#522691 #91262F #659126 #269187
split-complementary
#522691 #918726 #2F9126
monochromatic
#1B0D30 #371961 #522691 #6D33C1 #8E5DD5

Accessibility & contrast

On white

10.27
#522691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522691
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522691#FFFFFF#000000##FFFFFF
##5226911.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#424159
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522691;
/* rgb */ color: rgb(82, 38, 145);
/* oklch */ color: oklch(39.3% 0.165 296.8);
Tailwind
colors: {
  custom: {
    50: '#8965b2',
    500: '#522691',
    950: '#000000',
  },
}
SCSS
$custom: #522691;
$custom-light: #8965b2;
$custom-dark: #000000;
JSON
{
  "hex": "#522691",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 264.673,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39316,
    "c": 0.16462,
    "h": 296.8
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#522691
secondary
#92BA59
accent
#E246A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522691

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

Preview Lab → · Contrast checker → · Palette generator →

#522691 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva