#52267A#52267A

#52267A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.138 H 304.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#52267A
RGBrgb(82, 38, 122)
HSLhsl(271, 53%, 31%)
HSVhsv(271, 69%, 48%)
CMYKcmyk(32.8%, 68.9%, 0%, 52.2%)
CIE-LABlab(25.52, 37.25, -39.96)
CIE-LCHlch(25.52, 54.63, 312.99°)
OKLaboklab(37.42% 0.0782 -0.1134)
OKLCHoklch(37.42% 0.138 304.6)
XYZxyz(7.6849, 4.5852, 18.8888)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52267A #4E7A26
analogous
#28267A #52267A #7A2678
triadic
#52267A #7A5226 #267A52
tetradic
#52267A #7A2826 #4E7A26 #26787A
square
#52267A #7A2826 #4E7A26 #26787A
split-complementary
#52267A #787A26 #267A28
monochromatic
#13091D #33174B #52267A #7135A9 #9051C9

Accessibility & contrast

On white

10.95
#52267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#52267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52267A
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52267A#FFFFFF#000000##FFFFFF
##52267A1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#0B3C78
Tritanopia (blue-blind)
#4B384C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52267a;
/* rgb */ color: rgb(82, 38, 122);
/* oklch */ color: oklch(37.4% 0.138 304.6);
Tailwind
colors: {
  custom: {
    50: '#8664a1',
    500: '#52267a',
    950: '#000000',
  },
}
SCSS
$custom: #52267a;
$custom-light: #8664a1;
$custom-dark: #000000;
JSON
{
  "hex": "#52267a",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 271.429,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37421,
    "c": 0.13774,
    "h": 304.6
  },
  "luminance": 0.04585
}

Semantic roles & 50–950 ramp

primary
#52267A
secondary
#7CAC50
accent
#DC4C90
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #52267A

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

Preview Lab → · Contrast checker → · Palette generator →

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