#52277B#52277B

#52277B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.137 H 304.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#52277B
RGBrgb(82, 39, 123)
HSLhsl(271, 52%, 32%)
HSVhsv(271, 68%, 48%)
CMYKcmyk(33.3%, 68.3%, 0%, 51.8%)
CIE-LABlab(25.79, 36.97, -40.16)
CIE-LCHlch(25.79, 54.58, 312.63°)
OKLaboklab(37.64% 0.0769 -0.114)
OKLCHoklch(37.64% 0.137 304)
XYZxyz(7.7795, 4.6750, 19.2276)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52277B #507B27
analogous
#28277B #52277B #7B277A
triadic
#52277B #7B5227 #277B52
tetradic
#52277B #7B2827 #507B27 #277A7B
square
#52277B #7B2827 #507B27 #277A7B
split-complementary
#52277B #7A7B27 #277B28
monochromatic
#140A1E #33184D #52277B #7136A9 #9054C9

Accessibility & contrast

On white

10.85
#52277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#52277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52277B
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52277B#FFFFFF#000000##FFFFFF
##52277B1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#0B3D79
Tritanopia (blue-blind)
#4A394D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52277b;
/* rgb */ color: rgb(82, 39, 123);
/* oklch */ color: oklch(37.6% 0.137 304.0);
Tailwind
colors: {
  custom: {
    50: '#8664a2',
    500: '#52277b',
    950: '#000000',
  },
}
SCSS
$custom: #52277b;
$custom-light: #8664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52277b",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 270.714,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37638,
    "c": 0.13748,
    "h": 304
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#52277B
secondary
#7EAD51
accent
#DB4C92
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52277B

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

Preview Lab → · Contrast checker → · Palette generator →

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