#52277F#52277F

#52277F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.142 H 302.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#52277F
RGBrgb(82, 39, 127)
HSLhsl(269, 53%, 33%)
HSVhsv(269, 69%, 50%)
CMYKcmyk(35.4%, 69.3%, 0%, 50.2%)
CIE-LABlab(26.09, 38.02, -42.20)
CIE-LCHlch(26.09, 56.80, 312.02°)
OKLaboklab(37.95% 0.0764 -0.12)
OKLCHoklch(37.95% 0.142 302.5)
XYZxyz(8.0351, 4.7772, 20.5733)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52277F #547F27
analogous
#27287F #52277F #7E277F
triadic
#52277F #7F5227 #277F52
tetradic
#52277F #7F2728 #547F27 #277F7E
square
#52277F #7F2728 #547F27 #277F7E
split-complementary
#52277F #7F7E27 #287F27
monochromatic
#160A21 #341950 #52277F #7035AE #8F55CB

Accessibility & contrast

On white

10.74
#52277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#52277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52277F
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52277F#FFFFFF#000000##FFFFFF
##52277F1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#493B4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52277f;
/* rgb */ color: rgb(82, 39, 127);
/* oklch */ color: oklch(38.0% 0.142 302.5);
Tailwind
colors: {
  custom: {
    50: '#8764a5',
    500: '#52277f',
    950: '#000000',
  },
}
SCSS
$custom: #52277f;
$custom-light: #8764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#52277f",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 269.318,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37951,
    "c": 0.14224,
    "h": 302.5
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

primary
#52277F
secondary
#82B052
accent
#DC4B96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #52277F

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

Preview Lab → · Contrast checker → · Palette generator →

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