#52226B#52226B

#52226B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.126 H 312.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#52226B
RGBrgb(82, 34, 107)
HSLhsl(279, 52%, 28%)
HSVhsv(279, 68%, 42%)
CMYKcmyk(23.4%, 68.2%, 0%, 58%)
CIE-LABlab(23.67, 35.61, -33.33)
CIE-LCHlch(23.67, 48.77, 316.89°)
OKLaboklab(35.74% 0.0845 -0.0939)
OKLCHoklch(35.74% 0.126 312)
XYZxyz(6.7051, 3.9996, 14.3259)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52226B #3B6B22
analogous
#2D226B #52226B #6B225F
triadic
#52226B #6B5222 #226B52
tetradic
#52226B #6B2D22 #3B6B22 #225F6B
square
#52226B #6B2D22 #3B6B22 #225F6B
split-complementary
#52226B #5F6B22 #226B2D
monochromatic
#120717 #2E133D #52226B #763199 #9844C4

Accessibility & contrast

On white

11.67
#52226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#52226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52226B
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52226B#FFFFFF#000000##FFFFFF
##52226B1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#1B3969
Tritanopia (blue-blind)
#4F3043
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52226b;
/* rgb */ color: rgb(82, 34, 107);
/* oklch */ color: oklch(35.7% 0.126 312.0);
Tailwind
colors: {
  custom: {
    50: '#856196',
    500: '#52226b',
    950: '#000000',
  },
}
SCSS
$custom: #52226b;
$custom-light: #856196;
$custom-dark: #000000;
JSON
{
  "hex": "#52226b",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 279.452,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35744,
    "c": 0.1263,
    "h": 312
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#52226B
secondary
#679F4A
accent
#DB4D7D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52226B

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

Preview Lab → · Contrast checker → · Palette generator →

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