#522F74#522F74

#522F74 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.4% C 0.116 H 304.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#522F74
RGBrgb(82, 47, 116)
HSLhsl(270, 42%, 32%)
HSVhsv(270, 59%, 45%)
CMYKcmyk(29.3%, 59.5%, 0%, 54.5%)
CIE-LABlab(26.98, 30.58, -33.79)
CIE-LCHlch(26.98, 45.58, 312.15°)
OKLaboklab(38.35% 0.0666 -0.0953)
OKLCHoklch(38.35% 0.116 304.9)
XYZxyz(7.6479, 5.0879, 17.0988)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F74 #51742F
analogous
#302F74 #522F74 #742F74
triadic
#522F74 #74522F #2F7452
tetradic
#522F74 #74302F #51742F #2F7474
square
#522F74 #74302F #51742F #2F7474
split-complementary
#522F74 #74742F #2F7430
monochromatic
#140C1D #331D48 #522F74 #7141A0 #8F5FBE

Accessibility & contrast

On white

10.41
#522F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F74
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F74#FFFFFF#000000##FFFFFF
##522F741.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143F76
Deuteranopia (green-blind)
#224072
Tritanopia (blue-blind)
#4C3C4C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522f74;
/* rgb */ color: rgb(82, 47, 116);
/* oklch */ color: oklch(38.4% 0.116 304.9);
Tailwind
colors: {
  custom: {
    50: '#85699c',
    500: '#522f74',
    950: '#000000',
  },
}
SCSS
$custom: #522f74;
$custom-light: #85699c;
$custom-dark: #000000;
JSON
{
  "hex": "#522f74",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 270.435,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3835,
    "c": 0.11629,
    "h": 304.9
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

primary
#522F74
secondary
#7FA55A
accent
#D25693
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522F74

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

Preview Lab → · Contrast checker → · Palette generator →

#522F74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva