#52286D#52286D

#52286D is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.8% C 0.119 H 309.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#52286D
RGBrgb(82, 40, 109)
HSLhsl(277, 46%, 29%)
HSVhsv(277, 63%, 43%)
CMYKcmyk(24.8%, 63.3%, 0%, 57.3%)
CIE-LABlab(25.00, 32.84, -32.48)
CIE-LCHlch(25.00, 46.19, 315.31°)
OKLaboklab(36.75% 0.0764 -0.0915)
OKLCHoklch(36.75% 0.119 309.9)
XYZxyz(6.9983, 4.4157, 14.9487)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52286D #436D28
analogous
#30286D #52286D #6D2866
triadic
#52286D #6D5228 #286D52
tetradic
#52286D #6D3028 #436D28 #28666D
square
#52286D #6D3028 #436D28 #28666D
split-complementary
#52286D #666D28 #286D30
monochromatic
#110816 #301840 #52286D #74389A #9450BF

Accessibility & contrast

On white

11.15
#52286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52286D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52286D#FFFFFF#000000##FFFFFF
##52286D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D396F
Deuteranopia (green-blind)
#203C6B
Tritanopia (blue-blind)
#4E3546
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52286d;
/* rgb */ color: rgb(82, 40, 109);
/* oklch */ color: oklch(36.8% 0.119 309.9);
Tailwind
colors: {
  custom: {
    50: '#856497',
    500: '#52286d',
    950: '#000000',
  },
}
SCSS
$custom: #52286d;
$custom-light: #856497;
$custom-dark: #000000;
JSON
{
  "hex": "#52286d",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 276.522,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36752,
    "c": 0.11914,
    "h": 309.9
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#52286D
secondary
#709F51
accent
#D65286
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52286D

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

Preview Lab → · Contrast checker → · Palette generator →

#52286D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva