#522374#522374

#522374 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.135 H 307.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#522374
RGBrgb(82, 35, 116)
HSLhsl(275, 54%, 30%)
HSVhsv(275, 70%, 45%)
CMYKcmyk(29.3%, 69.8%, 0%, 54.5%)
CIE-LABlab(24.50, 37.29, -37.78)
CIE-LCHlch(24.50, 53.08, 314.63°)
OKLaboklab(36.55% 0.0825 -0.107)
OKLCHoklch(36.55% 0.135 307.6)
XYZxyz(7.2324, 4.2570, 16.9603)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522374 #457423
analogous
#2A2374 #522374 #74236E
triadic
#522374 #745223 #237452
tetradic
#522374 #742A23 #457423 #236E74
square
#522374 #742A23 #457423 #236E74
split-complementary
#522374 #6E7423 #23742A
monochromatic
#110718 #311545 #522374 #7331A3 #9349C8

Accessibility & contrast

On white

11.34
#522374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#522374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522374
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522374#FFFFFF#000000##FFFFFF
##5223741.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#113B72
Tritanopia (blue-blind)
#4D3448
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522374;
/* rgb */ color: rgb(82, 35, 116);
/* oklch */ color: oklch(36.5% 0.135 307.6);
Tailwind
colors: {
  custom: {
    50: '#86629d',
    500: '#522374',
    950: '#000000',
  },
}
SCSS
$custom: #522374;
$custom-light: #86629d;
$custom-dark: #000000;
JSON
{
  "hex": "#522374",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 116
  },
  "hsl": {
    "h": 274.815,
    "s": 53.642,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.13507,
    "h": 307.6
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#522374
secondary
#72A74C
accent
#DD4B88
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522374

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

Preview Lab → · Contrast checker → · Palette generator →

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