#52267E#52267E

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

Color values

HEX#52267E
RGBrgb(82, 38, 126)
HSLhsl(270, 54%, 32%)
HSVhsv(270, 70%, 49%)
CMYKcmyk(34.9%, 69.8%, 0%, 50.6%)
CIE-LABlab(25.82, 38.29, -42.00)
CIE-LCHlch(25.82, 56.83, 312.35°)
OKLaboklab(37.73% 0.0777 -0.1194)
OKLCHoklch(37.73% 0.142 303.1)
XYZxyz(7.9378, 4.6864, 20.2210)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52267E #527E26
analogous
#26267E #52267E #7E267E
triadic
#52267E #7E5226 #267E52
tetradic
#52267E #7E2626 #527E26 #267E7E
square
#52267E #7E2626 #527E26 #267E7E
split-complementary
#52267E #7E7E26 #267E26
monochromatic
#150A20 #33184F #52267E #7134AD #8F53CB

Accessibility & contrast

On white

10.84
#52267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#52267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52267E
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52267E#FFFFFF#000000##FFFFFF
##52267E1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#493A4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52267e;
/* rgb */ color: rgb(82, 38, 126);
/* oklch */ color: oklch(37.7% 0.142 303.1);
Tailwind
colors: {
  custom: {
    50: '#8764a4',
    500: '#52267e',
    950: '#000000',
  },
}
SCSS
$custom: #52267e;
$custom-light: #8764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52267e",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 270,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37734,
    "c": 0.14246,
    "h": 303.1
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#52267E
secondary
#80B050
accent
#DD4B94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52267E

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

Preview Lab → · Contrast checker → · Palette generator →

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