#52227F#52227F

#52227F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.149 H 303.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#52227F
RGBrgb(82, 34, 127)
HSLhsl(271, 58%, 32%)
HSVhsv(271, 73%, 50%)
CMYKcmyk(35.4%, 73.2%, 0%, 50.2%)
CIE-LABlab(25.17, 40.59, -43.69)
CIE-LCHlch(25.17, 59.63, 312.89°)
OKLaboklab(37.29% 0.0821 -0.1243)
OKLCHoklch(37.29% 0.149 303.4)
XYZxyz(7.8816, 4.4702, 20.5222)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52227F #4F7F22
analogous
#24227F #52227F #7F227E
triadic
#52227F #7F5222 #227F52
tetradic
#52227F #7F2422 #4F7F22 #227E7F
square
#52227F #7F2422 #4F7F22 #227E7F
split-complementary
#52227F #7E7F22 #227F24
monochromatic
#14081E #33154F #52227F #712FAF #904CCF

Accessibility & contrast

On white

11.09
#52227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52227F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52227F#FFFFFF#000000##FFFFFF
##52227F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#49384E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52227f;
/* rgb */ color: rgb(82, 34, 127);
/* oklch */ color: oklch(37.3% 0.149 303.4);
Tailwind
colors: {
  custom: {
    50: '#8761a5',
    500: '#52227f',
    950: '#000000',
  },
}
SCSS
$custom: #52227f;
$custom-light: #8761a5;
$custom-dark: #000000;
JSON
{
  "hex": "#52227f",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 270.968,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37292,
    "c": 0.14899,
    "h": 303.4
  },
  "luminance": 0.0447
}

Semantic roles & 50–950 ramp

primary
#52227F
secondary
#7DB24B
accent
#E14791
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52227F

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

Preview Lab → · Contrast checker → · Palette generator →

#52227F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva