#52276F#52276F

#52276F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.123 H 309.1°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#52276F
RGBrgb(82, 39, 111)
HSLhsl(276, 48%, 29%)
HSVhsv(276, 65%, 44%)
CMYKcmyk(26.1%, 64.9%, 0%, 56.5%)
CIE-LABlab(24.93, 33.90, -33.89)
CIE-LCHlch(24.93, 47.93, 315.01°)
OKLaboklab(36.74% 0.0777 -0.0956)
OKLCHoklch(36.74% 0.123 309.1)
XYZxyz(7.0739, 4.3927, 15.5111)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52276F #446F27
analogous
#2E276F #52276F #6F2768
triadic
#52276F #6F5227 #276F52
tetradic
#52276F #6F2E27 #446F27 #27686F
square
#52276F #6F2E27 #446F27 #27686F
split-complementary
#52276F #686F27 #276F2E
monochromatic
#110817 #311742 #52276F #73379C #934FC1

Accessibility & contrast

On white

11.18
#52276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52276F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52276F#FFFFFF#000000##FFFFFF
##52276F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053971
Deuteranopia (green-blind)
#1D3C6D
Tritanopia (blue-blind)
#4E3547
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52276f;
/* rgb */ color: rgb(82, 39, 111);
/* oklch */ color: oklch(36.7% 0.123 309.1);
Tailwind
colors: {
  custom: {
    50: '#856499',
    500: '#52276f',
    950: '#000000',
  },
}
SCSS
$custom: #52276f;
$custom-light: #856499;
$custom-dark: #000000;
JSON
{
  "hex": "#52276f",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 275.833,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36744,
    "c": 0.12316,
    "h": 309.1
  },
  "luminance": 0.04393
}

Semantic roles & 50–950 ramp

primary
#52276F
secondary
#71A250
accent
#D85087
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #52276F

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

Preview Lab → · Contrast checker → · Palette generator →

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