#52266D#52266D

#52266D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.122 H 310.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#52266D
RGBrgb(82, 38, 109)
HSLhsl(277, 48%, 29%)
HSVhsv(277, 65%, 43%)
CMYKcmyk(24.8%, 65.1%, 0%, 57.3%)
CIE-LABlab(24.59, 33.95, -33.14)
CIE-LCHlch(24.59, 47.45, 315.69°)
OKLaboklab(36.45% 0.0791 -0.0934)
OKLCHoklch(36.45% 0.122 310.3)
XYZxyz(6.9326, 4.2843, 14.9268)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52266D #416D26
analogous
#2F266D #52266D #6D2665
triadic
#52266D #6D5226 #266D52
tetradic
#52266D #6D2F26 #416D26 #26656D
square
#52266D #6D2F26 #416D26 #26656D
split-complementary
#52266D #656D26 #266D2F
monochromatic
#110817 #301640 #52266D #74369A #954DC1

Accessibility & contrast

On white

11.31
#52266D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52266D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52266D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52266D#FFFFFF#000000##FFFFFF
##52266D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06386F
Deuteranopia (green-blind)
#1E3B6B
Tritanopia (blue-blind)
#4E3445
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52266d;
/* rgb */ color: rgb(82, 38, 109);
/* oklch */ color: oklch(36.5% 0.122 310.3);
Tailwind
colors: {
  custom: {
    50: '#856397',
    500: '#52266d',
    950: '#000000',
  },
}
SCSS
$custom: #52266d;
$custom-light: #856397;
$custom-dark: #000000;
JSON
{
  "hex": "#52266d",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 109
  },
  "hsl": {
    "h": 277.183,
    "s": 48.299,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36454,
    "c": 0.12237,
    "h": 310.3
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#52266D
secondary
#6EA04F
accent
#D85084
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52266D

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

Preview Lab → · Contrast checker → · Palette generator →

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