#52267C#52267C

#52267C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.140 H 303.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#52267C
RGBrgb(82, 38, 124)
HSLhsl(271, 53%, 32%)
HSVhsv(271, 69%, 49%)
CMYKcmyk(33.9%, 69.4%, 0%, 51.4%)
CIE-LABlab(25.67, 37.76, -40.98)
CIE-LCHlch(25.67, 55.73, 312.66°)
OKLaboklab(37.58% 0.078 -0.1164)
OKLCHoklch(37.58% 0.14 303.8)
XYZxyz(7.8100, 4.6353, 19.5481)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52267C #507C26
analogous
#27267C #52267C #7C267B
triadic
#52267C #7C5226 #267C52
tetradic
#52267C #7C2726 #507C26 #267B7C
square
#52267C #7C2726 #507C26 #267B7C
split-complementary
#52267C #7B7C26 #267C27
monochromatic
#14091E #33184D #52267C #7134AB #9052CA

Accessibility & contrast

On white

10.90
#52267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#52267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52267C
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52267C#FFFFFF#000000##FFFFFF
##52267C1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#063D7A
Tritanopia (blue-blind)
#4A394D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52267c;
/* rgb */ color: rgb(82, 38, 124);
/* oklch */ color: oklch(37.6% 0.140 303.8);
Tailwind
colors: {
  custom: {
    50: '#8664a2',
    500: '#52267c',
    950: '#000000',
  },
}
SCSS
$custom: #52267c;
$custom-light: #8664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52267c",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 270.698,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37576,
    "c": 0.14011,
    "h": 303.8
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#52267C
secondary
#7EAE50
accent
#DC4B92
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52267C

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

Preview Lab → · Contrast checker → · Palette generator →

#52267C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva