#52286F#52286F

#52286F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.9% C 0.122 H 308.9°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#52286F
RGBrgb(82, 40, 111)
HSLhsl(275, 47%, 30%)
HSVhsv(275, 64%, 44%)
CMYKcmyk(26.1%, 64%, 0%, 56.5%)
CIE-LABlab(25.13, 33.34, -33.56)
CIE-LCHlch(25.13, 47.30, 314.82°)
OKLaboklab(36.89% 0.0763 -0.0946)
OKLCHoklch(36.89% 0.122 308.9)
XYZxyz(7.1071, 4.4592, 15.5222)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52286F #456F28
analogous
#2F286F #52286F #6F2869
triadic
#52286F #6F5228 #286F52
tetradic
#52286F #6F2F28 #456F28 #28696F
square
#52286F #6F2F28 #456F28 #28696F
split-complementary
#52286F #696F28 #286F2F
monochromatic
#110816 #311842 #52286F #73389C #9351C0

Accessibility & contrast

On white

11.10
#52286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52286F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52286F#FFFFFF#000000##FFFFFF
##52286F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093A71
Deuteranopia (green-blind)
#1E3C6D
Tritanopia (blue-blind)
#4E3647
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52286f;
/* rgb */ color: rgb(82, 40, 111);
/* oklch */ color: oklch(36.9% 0.122 308.9);
Tailwind
colors: {
  custom: {
    50: '#856499',
    500: '#52286f',
    950: '#000000',
  },
}
SCSS
$custom: #52286f;
$custom-light: #856499;
$custom-dark: #000000;
JSON
{
  "hex": "#52286f",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 275.493,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36893,
    "c": 0.12155,
    "h": 308.9
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#52286F
secondary
#72A151
accent
#D75188
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #52286F

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

Preview Lab → · Contrast checker → · Palette generator →

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