#521895#521895

#521895 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.183 H 297.6°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#521895
RGBrgb(82, 24, 149)
HSLhsl(268, 72%, 34%)
HSVhsv(268, 84%, 58%)
CMYKcmyk(45%, 83.9%, 0%, 41.6%)
CIE-LABlab(25.61, 50.45, -56.68)
CIE-LCHlch(25.61, 75.88, 311.67°)
OKLaboklab(38.2% 0.0849 -0.1624)
OKLCHoklch(38.2% 0.183 297.6)
XYZxyz(9.2297, 4.6169, 28.8328)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521895 #5B9518
analogous
#181D95 #521895 #911895
triadic
#521895 #955218 #189552
tetradic
#521895 #95181D #5B9518 #189591
square
#521895 #95181D #5B9518 #189591
split-complementary
#521895 #959118 #1D9518
monochromatic
#18072C #351060 #521895 #6F20CA #8E46E1

Accessibility & contrast

On white

10.92
#521895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#521895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521895
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521895#FFFFFF#000000##FFFFFF
##5218951.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#403D58
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #521895;
/* rgb */ color: rgb(82, 24, 149);
/* oklch */ color: oklch(38.2% 0.183 297.6);
Tailwind
colors: {
  custom: {
    50: '#8a5eb5',
    500: '#521895',
    950: '#000000',
  },
}
SCSS
$custom: #521895;
$custom-light: #8a5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#521895",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 267.84,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38203,
    "c": 0.18326,
    "h": 297.6
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#521895
secondary
#89C246
accent
#EF399A
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #521895

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

Preview Lab → · Contrast checker → · Palette generator →

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