#52266E#52266E

#52266E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.124 H 309.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#52266E
RGBrgb(82, 38, 110)
HSLhsl(277, 49%, 29%)
HSVhsv(277, 65%, 43%)
CMYKcmyk(25.5%, 65.5%, 0%, 56.9%)
CIE-LABlab(24.66, 34.20, -33.68)
CIE-LCHlch(24.66, 48.00, 315.44°)
OKLaboklab(36.53% 0.0791 -0.0949)
OKLCHoklch(36.53% 0.124 309.8)
XYZxyz(6.9867, 4.3060, 15.2119)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52266E #426E26
analogous
#2E266E #52266E #6E2666
triadic
#52266E #6E5226 #266E52
tetradic
#52266E #6E2E26 #426E26 #26666E
square
#52266E #6E2E26 #426E26 #26666E
split-complementary
#52266E #666E26 #266E2E
monochromatic
#110817 #301641 #52266E #74369B #944DC1

Accessibility & contrast

On white

11.28
#52266E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52266E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52266E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52266E#FFFFFF#000000##FFFFFF
##52266E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043970
Deuteranopia (green-blind)
#1D3B6C
Tritanopia (blue-blind)
#4E3446
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52266e;
/* rgb */ color: rgb(82, 38, 110);
/* oklch */ color: oklch(36.5% 0.124 309.8);
Tailwind
colors: {
  custom: {
    50: '#856398',
    500: '#52266e',
    950: '#000000',
  },
}
SCSS
$custom: #52266e;
$custom-light: #856398;
$custom-dark: #000000;
JSON
{
  "hex": "#52266e",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 276.667,
    "s": 48.649,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36525,
    "c": 0.12355,
    "h": 309.8
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#52266E
secondary
#6FA14F
accent
#D85085
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #52266E

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

Preview Lab → · Contrast checker → · Palette generator →

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