#523198#523198

#523198 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.159 H 292.8°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#523198
RGBrgb(82, 49, 152)
HSLhsl(259, 51%, 39%)
HSVhsv(259, 68%, 60%)
CMYKcmyk(46.1%, 67.8%, 0%, 40.4%)
CIE-LABlab(30.05, 39.45, -51.27)
CIE-LCHlch(30.05, 64.69, 307.57°)
OKLaboklab(41.42% 0.0618 -0.1467)
OKLCHoklch(41.42% 0.159 292.8)
XYZxyz(10.2439, 6.2571, 30.3677)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523198 #779831
analogous
#314498 #523198 #863198
triadic
#523198 #985231 #319852
tetradic
#523198 #983144 #779831 #319886
square
#523198 #983144 #779831 #319886
split-complementary
#523198 #988631 #449831
monochromatic
#20133B #39226A #523198 #6C44C3 #9172D2

Accessibility & contrast

On white

9.33
#523198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#523198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523198
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523198#FFFFFF#000000##FFFFFF
##5231981.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#3E4A60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #523198;
/* rgb */ color: rgb(82, 49, 152);
/* oklch */ color: oklch(41.4% 0.159 292.8);
Tailwind
colors: {
  custom: {
    50: '#896bb7',
    500: '#523198',
    950: '#000000',
  },
}
SCSS
$custom: #523198;
$custom-light: #896bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#523198",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 259.223,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41415,
    "c": 0.15916,
    "h": 292.8
  },
  "luminance": 0.06257
}

Semantic roles & 50–950 ramp

primary
#523198
secondary
#A0B96B
accent
#DB4DAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #523198

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

Preview Lab → · Contrast checker → · Palette generator →

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