#52266F#52266F

#52266F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.125 H 309.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#52266F
RGBrgb(82, 38, 111)
HSLhsl(276, 49%, 29%)
HSVhsv(276, 66%, 44%)
CMYKcmyk(26.1%, 65.8%, 0%, 56.5%)
CIE-LABlab(24.73, 34.45, -34.21)
CIE-LCHlch(24.73, 48.55, 315.20°)
OKLaboklab(36.6% 0.079 -0.0965)
OKLCHoklch(36.6% 0.125 309.3)
XYZxyz(7.0415, 4.3279, 15.5003)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52266F #436F26
analogous
#2E266F #52266F #6F2668
triadic
#52266F #6F5226 #266F52
tetradic
#52266F #6F2E26 #436F26 #26686F
square
#52266F #6F2E26 #436F26 #26686F
split-complementary
#52266F #686F26 #266F2E
monochromatic
#110817 #301641 #52266F #74369D #944DC2

Accessibility & contrast

On white

11.26
#52266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52266F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52266F
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52266F#FFFFFF#000000##FFFFFF
##52266F1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023971
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#4E3446
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52266f;
/* rgb */ color: rgb(82, 38, 111);
/* oklch */ color: oklch(36.6% 0.125 309.3);
Tailwind
colors: {
  custom: {
    50: '#856399',
    500: '#52266f',
    950: '#000000',
  },
}
SCSS
$custom: #52266f;
$custom-light: #856399;
$custom-dark: #000000;
JSON
{
  "hex": "#52266f",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 276.164,
    "s": 48.993,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36597,
    "c": 0.12474,
    "h": 309.3
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#52266F
secondary
#70A24F
accent
#D94F86
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #52266F

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

Preview Lab → · Contrast checker → · Palette generator →

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