#524286#524286

#524286 is a dark, moderate violet. Relative luminance 0.074; OKLCH L 43.0% C 0.109 H 292.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#524286
RGBrgb(82, 66, 134)
HSLhsl(254, 34%, 39%)
HSVhsv(254, 51%, 53%)
CMYKcmyk(38.8%, 50.7%, 0%, 47.5%)
CIE-LABlab(32.73, 23.87, -35.90)
CIE-LCHlch(32.73, 43.12, 303.62°)
OKLaboklab(42.98% 0.041 -0.1015)
OKLCHoklch(42.98% 0.109 292)
XYZxyz(9.7298, 7.4113, 23.4675)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#524286 #768642
analogous
#425486 #524286 #744286
triadic
#524286 #865242 #428652
tetradic
#524286 #864254 #768642 #428674
square
#524286 #864254 #768642 #428674
split-complementary
#524286 #867442 #548642
monochromatic
#201A34 #392E5D #524286 #6C58AD #9081C1

Accessibility & contrast

On white

8.46
#524286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#524286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #524286
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##524286#FFFFFF#000000##FFFFFF
##5242861.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E88
Deuteranopia (green-blind)
#2A4C84
Tritanopia (blue-blind)
#45505D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #524286;
/* rgb */ color: rgb(82, 66, 134);
/* oklch */ color: oklch(43.0% 0.109 292.0);
Tailwind
colors: {
  custom: {
    50: '#8576aa',
    500: '#524286',
    950: '#000000',
  },
}
SCSS
$custom: #524286;
$custom-light: #8576aa;
$custom-dark: #000000;
JSON
{
  "hex": "#524286",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 134
  },
  "hsl": {
    "h": 254.118,
    "s": 34,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42975,
    "c": 0.10948,
    "h": 292
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#524286
secondary
#A0AC78
accent
#CA5EB1
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #524286

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

Preview Lab → · Contrast checker → · Palette generator →

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