#523374#523374

#523374 is a dark, moderate violet. Relative luminance 0.054; OKLCH L 39.0% C 0.110 H 303.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#523374
RGBrgb(82, 51, 116)
HSLhsl(269, 39%, 33%)
HSVhsv(269, 56%, 45%)
CMYKcmyk(29.3%, 56%, 0%, 54.5%)
CIE-LABlab(27.91, 28.17, -32.32)
CIE-LCHlch(27.91, 42.87, 311.08°)
OKLaboklab(39.03% 0.0609 -0.091)
OKLCHoklch(39.03% 0.11 303.8)
XYZxyz(7.8152, 5.4225, 17.1545)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523374 #557433
analogous
#333574 #523374 #723374
triadic
#523374 #745233 #337452
tetradic
#523374 #743335 #557433 #337472
square
#523374 #743335 #557433 #337472
split-complementary
#523374 #747233 #357433
monochromatic
#160E1F #342049 #523374 #70469F #8F66BC

Accessibility & contrast

On white

10.07
#523374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#523374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523374
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523374#FFFFFF#000000##FFFFFF
##5233741.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4176
Deuteranopia (green-blind)
#264272
Tritanopia (blue-blind)
#4C3F4E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #523374;
/* rgb */ color: rgb(82, 51, 116);
/* oklch */ color: oklch(39.0% 0.110 303.8);
Tailwind
colors: {
  custom: {
    50: '#856c9c',
    500: '#523374',
    950: '#000000',
  },
}
SCSS
$custom: #523374;
$custom-light: #856c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#523374",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 116
  },
  "hsl": {
    "h": 268.615,
    "s": 38.922,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39029,
    "c": 0.1095,
    "h": 303.8
  },
  "luminance": 0.05422
}

Semantic roles & 50–950 ramp

primary
#523374
secondary
#83A45F
accent
#CF5997
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #523374

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

Preview Lab → · Contrast checker → · Palette generator →

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