#52267B#52267B

#52267B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.139 H 304.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#52267B
RGBrgb(82, 38, 123)
HSLhsl(271, 53%, 32%)
HSVhsv(271, 69%, 48%)
CMYKcmyk(33.3%, 69.1%, 0%, 51.8%)
CIE-LABlab(25.59, 37.50, -40.47)
CIE-LCHlch(25.59, 55.18, 312.82°)
OKLaboklab(37.5% 0.0781 -0.1149)
OKLCHoklch(37.5% 0.139 304.2)
XYZxyz(7.7471, 4.6102, 19.2168)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52267B #4F7B26
analogous
#28267B #52267B #7B267A
triadic
#52267B #7B5226 #267B52
tetradic
#52267B #7B2826 #4F7B26 #267A7B
square
#52267B #7B2826 #4F7B26 #267A7B
split-complementary
#52267B #7A7B26 #267B28
monochromatic
#14091D #33184C #52267B #7134AA #9052CA

Accessibility & contrast

On white

10.93
#52267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52267B
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52267B#FFFFFF#000000##FFFFFF
##52267B1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#083D79
Tritanopia (blue-blind)
#4A394D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52267b;
/* rgb */ color: rgb(82, 38, 123);
/* oklch */ color: oklch(37.5% 0.139 304.2);
Tailwind
colors: {
  custom: {
    50: '#8664a2',
    500: '#52267b',
    950: '#000000',
  },
}
SCSS
$custom: #52267b;
$custom-light: #8664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52267b",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 271.059,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37498,
    "c": 0.13892,
    "h": 304.2
  },
  "luminance": 0.0461
}

Semantic roles & 50–950 ramp

primary
#52267B
secondary
#7DAD50
accent
#DC4C91
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52267B

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

Preview Lab → · Contrast checker → · Palette generator →

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