#523166#523166

#523166 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 37.8% C 0.095 H 311.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#523166
RGBrgb(82, 49, 102)
HSLhsl(277, 35%, 30%)
HSVhsv(277, 52%, 40%)
CMYKcmyk(19.6%, 52%, 0%, 60%)
CIE-LABlab(26.59, 25.76, -25.44)
CIE-LCHlch(26.59, 36.20, 315.35°)
OKLaboklab(37.78% 0.0625 -0.0709)
OKLCHoklch(37.78% 0.095 311.4)
XYZxyz(6.9758, 4.9499, 13.1557)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523166 #456631
analogous
#383166 #523166 #663160
triadic
#523166 #665231 #316652
tetradic
#523166 #663831 #456631 #316066
square
#523166 #663831 #456631 #316066
split-complementary
#523166 #606631 #316638
monochromatic
#110A15 #311D3D #523166 #73458F #935FB2

Accessibility & contrast

On white

10.55
#523166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#523166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523166
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523166#FFFFFF#000000##FFFFFF
##5231661.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243D68
Deuteranopia (green-blind)
#2E4065
Tritanopia (blue-blind)
#503946
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #523166;
/* rgb */ color: rgb(82, 49, 102);
/* oklch */ color: oklch(37.8% 0.095 311.4);
Tailwind
colors: {
  custom: {
    50: '#846a92',
    500: '#523166',
    950: '#000000',
  },
}
SCSS
$custom: #523166;
$custom-light: #846a92;
$custom-dark: #000000;
JSON
{
  "hex": "#523166",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 277.358,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37783,
    "c": 0.09455,
    "h": 311.4
  },
  "luminance": 0.0495
}

Semantic roles & 50–950 ramp

primary
#523166
secondary
#72975C
accent
#CB5D86
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #523166

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

Preview Lab → · Contrast checker → · Palette generator →

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