#522796#522796

#522796 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.169 H 295.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#522796
RGBrgb(82, 39, 150)
HSLhsl(263, 59%, 37%)
HSVhsv(263, 74%, 59%)
CMYKcmyk(45.3%, 74%, 0%, 41.2%)
CIE-LABlab(27.97, 44.20, -53.44)
CIE-LCHlch(27.97, 69.35, 309.59°)
OKLaboklab(39.88% 0.0723 -0.153)
OKLCHoklch(39.88% 0.169 295.3)
XYZxyz(9.7087, 5.4466, 29.3880)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522796 #6B9627
analogous
#273496 #522796 #8A2796
triadic
#522796 #965227 #279652
tetradic
#522796 #962734 #6B9627 #27968A
square
#522796 #962734 #6B9627 #27968A
split-complementary
#522796 #968A27 #349627
monochromatic
#1D0E35 #371A65 #522796 #6D34C7 #8F61D6

Accessibility & contrast

On white

10.05
#522796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#522796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522796
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522796#FFFFFF#000000##FFFFFF
##5227961.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#3F445C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522796;
/* rgb */ color: rgb(82, 39, 150);
/* oklch */ color: oklch(39.9% 0.169 295.3);
Tailwind
colors: {
  custom: {
    50: '#8965b6',
    500: '#522796',
    950: '#000000',
  },
}
SCSS
$custom: #522796;
$custom-light: #8965b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522796",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 263.243,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39878,
    "c": 0.16922,
    "h": 295.3
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#522796
secondary
#97BC5D
accent
#E246A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522796

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

Preview Lab → · Contrast checker → · Palette generator →

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