#522294#522294

#522294 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.173 H 296.6°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#522294
RGBrgb(82, 34, 148)
HSLhsl(265, 63%, 36%)
HSVhsv(265, 77%, 58%)
CMYKcmyk(44.6%, 77%, 0%, 42%)
CIE-LABlab(26.95, 46.06, -53.88)
CIE-LCHlch(26.95, 70.88, 310.53°)
OKLaboklab(39.1% 0.0774 -0.1543)
OKLCHoklch(39.1% 0.173 296.6)
XYZxyz(9.3956, 5.0758, 28.4959)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522294 #649422
analogous
#222B94 #522294 #8B2294
triadic
#522294 #945222 #229452
tetradic
#522294 #94222B #649422 #22948B
square
#522294 #94222B #649422 #22948B
split-complementary
#522294 #948B22 #2B9422
monochromatic
#1B0B30 #361762 #522294 #6E2DC6 #8E58D9

Accessibility & contrast

On white

10.42
#522294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522294
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522294#FFFFFF#000000##FFFFFF
##5222941.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#40405A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522294;
/* rgb */ color: rgb(82, 34, 148);
/* oklch */ color: oklch(39.1% 0.173 296.6);
Tailwind
colors: {
  custom: {
    50: '#8962b4',
    500: '#522294',
    950: '#000000',
  },
}
SCSS
$custom: #522294;
$custom-light: #8962b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522294",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 265.263,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39104,
    "c": 0.17258,
    "h": 296.6
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#522294
secondary
#91BD55
accent
#E642A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522294

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

Preview Lab → · Contrast checker → · Palette generator →

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