#52266A#52266A

#52266A is a dark, moderate violet. Relative luminance 0.042; OKLCH L 36.2% C 0.119 H 311.8°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#52266A
RGBrgb(82, 38, 106)
HSLhsl(279, 47%, 28%)
HSVhsv(279, 64%, 42%)
CMYKcmyk(22.6%, 64.2%, 0%, 58.4%)
CIE-LABlab(24.39, 33.21, -31.53)
CIE-LCHlch(24.39, 45.79, 316.49°)
OKLaboklab(36.24% 0.0791 -0.0886)
OKLCHoklch(36.24% 0.119 311.8)
XYZxyz(6.7738, 4.2208, 14.0907)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52266A #3E6A26
analogous
#30266A #52266A #6A2660
triadic
#52266A #6A5226 #266A52
tetradic
#52266A #6A3026 #3E6A26 #26606A
square
#52266A #6A3026 #3E6A26 #26606A
split-complementary
#52266A #606A26 #266A30
monochromatic
#110817 #2F163D #52266A #753697 #964CBF

Accessibility & contrast

On white

11.39
#52266A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#52266A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52266A
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52266A#FFFFFF#000000##FFFFFF
##52266A1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C386C
Deuteranopia (green-blind)
#203B68
Tritanopia (blue-blind)
#4F3344
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52266a;
/* rgb */ color: rgb(82, 38, 106);
/* oklch */ color: oklch(36.2% 0.119 311.8);
Tailwind
colors: {
  custom: {
    50: '#856395',
    500: '#52266a',
    950: '#000000',
  },
}
SCSS
$custom: #52266a;
$custom-light: #856395;
$custom-dark: #000000;
JSON
{
  "hex": "#52266a",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 106
  },
  "hsl": {
    "h": 278.824,
    "s": 47.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36243,
    "c": 0.11883,
    "h": 311.8
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#52266A
secondary
#6A9D4F
accent
#D75180
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52266A

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

Preview Lab → · Contrast checker → · Palette generator →

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