#52276D#52276D

#52276D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.121 H 310.1°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#52276D
RGBrgb(82, 39, 109)
HSLhsl(277, 47%, 29%)
HSVhsv(277, 64%, 43%)
CMYKcmyk(24.8%, 64.2%, 0%, 57.3%)
CIE-LABlab(24.79, 33.40, -32.82)
CIE-LCHlch(24.79, 46.82, 315.50°)
OKLaboklab(36.6% 0.0777 -0.0924)
OKLCHoklch(36.6% 0.121 310.1)
XYZxyz(6.9650, 4.3491, 14.9376)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52276D #426D27
analogous
#2F276D #52276D #6D2765
triadic
#52276D #6D5227 #276D52
tetradic
#52276D #6D2F27 #426D27 #27656D
square
#52276D #6D2F27 #426D27 #27656D
split-complementary
#52276D #656D27 #276D2F
monochromatic
#110817 #301740 #52276D #74379A #944FC0

Accessibility & contrast

On white

11.23
#52276D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52276D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52276D
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52276D#FFFFFF#000000##FFFFFF
##52276D1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09396F
Deuteranopia (green-blind)
#1F3C6B
Tritanopia (blue-blind)
#4E3446
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52276d;
/* rgb */ color: rgb(82, 39, 109);
/* oklch */ color: oklch(36.6% 0.121 310.1);
Tailwind
colors: {
  custom: {
    50: '#856497',
    500: '#52276d',
    950: '#000000',
  },
}
SCSS
$custom: #52276d;
$custom-light: #856497;
$custom-dark: #000000;
JSON
{
  "hex": "#52276d",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 109
  },
  "hsl": {
    "h": 276.857,
    "s": 47.297,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36602,
    "c": 0.12076,
    "h": 310.1
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#52276D
secondary
#6FA050
accent
#D75185
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52276D

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

Preview Lab → · Contrast checker → · Palette generator →

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