#52267F#52267F

#52267F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.144 H 302.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#52267F
RGBrgb(82, 38, 127)
HSLhsl(270, 54%, 32%)
HSVhsv(270, 70%, 50%)
CMYKcmyk(35.4%, 70.1%, 0%, 50.2%)
CIE-LABlab(25.90, 38.55, -42.51)
CIE-LCHlch(25.90, 57.38, 312.20°)
OKLaboklab(37.81% 0.0776 -0.1209)
OKLCHoklch(37.81% 0.144 302.7)
XYZxyz(8.0027, 4.7124, 20.5625)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52267F #537F26
analogous
#26277F #52267F #7F267F
triadic
#52267F #7F5226 #267F52
tetradic
#52267F #7F2627 #537F26 #267F7F
square
#52267F #7F2627 #537F26 #267F7F
split-complementary
#52267F #7F7F26 #277F26
monochromatic
#150A21 #341850 #52267F #7034AE #8F54CC

Accessibility & contrast

On white

10.81
#52267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52267F
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52267F#FFFFFF#000000##FFFFFF
##52267F1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52267f;
/* rgb */ color: rgb(82, 38, 127);
/* oklch */ color: oklch(37.8% 0.144 302.7);
Tailwind
colors: {
  custom: {
    50: '#8764a5',
    500: '#52267f',
    950: '#000000',
  },
}
SCSS
$custom: #52267f;
$custom-light: #8764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#52267f",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 269.663,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37814,
    "c": 0.14363,
    "h": 302.7
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#52267F
secondary
#81B051
accent
#DD4A95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52267F

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

Preview Lab → · Contrast checker → · Palette generator →

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