#52267D#52267D

#52267D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.141 H 303.4°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#52267D
RGBrgb(82, 38, 125)
HSLhsl(270, 53%, 32%)
HSVhsv(270, 70%, 49%)
CMYKcmyk(34.4%, 69.6%, 0%, 51%)
CIE-LABlab(25.75, 38.03, -41.49)
CIE-LCHlch(25.75, 56.28, 312.50°)
OKLaboklab(37.66% 0.0779 -0.1179)
OKLCHoklch(37.66% 0.141 303.4)
XYZxyz(7.8736, 4.6607, 19.8829)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52267D #517D26
analogous
#27267D #52267D #7D267D
triadic
#52267D #7D5226 #267D52
tetradic
#52267D #7D2726 #517D26 #267D7D
square
#52267D #7D2726 #517D26 #267D7D
split-complementary
#52267D #7D7D26 #267D27
monochromatic
#14091F #33184E #52267D #7134AC #8F53CB

Accessibility & contrast

On white

10.87
#52267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52267D
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52267D#FFFFFF#000000##FFFFFF
##52267D1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#4A3A4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52267d;
/* rgb */ color: rgb(82, 38, 125);
/* oklch */ color: oklch(37.7% 0.141 303.4);
Tailwind
colors: {
  custom: {
    50: '#8664a3',
    500: '#52267d',
    950: '#000000',
  },
}
SCSS
$custom: #52267d;
$custom-light: #8664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52267d",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 270.345,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37655,
    "c": 0.14128,
    "h": 303.4
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#52267D
secondary
#7FAF50
accent
#DD4B93
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52267D

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

Preview Lab → · Contrast checker → · Palette generator →

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