#52268A#52268A

#52268A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.157 H 299.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#52268A
RGBrgb(82, 38, 138)
HSLhsl(266, 57%, 35%)
HSVhsv(266, 72%, 54%)
CMYKcmyk(40.6%, 72.5%, 0%, 45.9%)
CIE-LABlab(26.78, 41.46, -47.97)
CIE-LCHlch(26.78, 63.40, 310.84°)
OKLaboklab(38.72% 0.0758 -0.1369)
OKLCHoklch(38.72% 0.157 299)
XYZxyz(8.7591, 5.0149, 24.5463)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52268A #5E8A26
analogous
#262C8A #52268A #84268A
triadic
#52268A #8A5226 #268A52
tetradic
#52268A #8A262C #5E8A26 #268A84
square
#52268A #8A262C #5E8A26 #268A84
split-complementary
#52268A #8A8426 #2C8A26
monochromatic
#190C2A #35195A #52268A #6F33BA #8E59D1

Accessibility & contrast

On white

10.48
#52268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#52268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52268A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52268A#FFFFFF#000000##FFFFFF
##52268A1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#453F55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52268a;
/* rgb */ color: rgb(82, 38, 138);
/* oklch */ color: oklch(38.7% 0.157 299.0);
Tailwind
colors: {
  custom: {
    50: '#8864ad',
    500: '#52268a',
    950: '#000000',
  },
}
SCSS
$custom: #52268a;
$custom-light: #8864ad;
$custom-dark: #000000;
JSON
{
  "hex": "#52268a",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 266.4,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.15651,
    "h": 299
  },
  "luminance": 0.05015
}

Semantic roles & 50–950 ramp

primary
#52268A
secondary
#8CB656
accent
#E0489D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52268A

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

Preview Lab → · Contrast checker → · Palette generator →

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