#52256E#52256E

#52256E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.125 H 310.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#52256E
RGBrgb(82, 37, 110)
HSLhsl(277, 50%, 29%)
HSVhsv(277, 66%, 43%)
CMYKcmyk(25.5%, 66.4%, 0%, 56.9%)
CIE-LABlab(24.46, 34.74, -34.00)
CIE-LCHlch(24.46, 48.61, 315.62°)
OKLaboklab(36.38% 0.0804 -0.0959)
OKLCHoklch(36.38% 0.125 310)
XYZxyz(6.9552, 4.2429, 15.2014)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52256E #416E25
analogous
#2E256E #52256E #6E2566
triadic
#52256E #6E5225 #256E52
tetradic
#52256E #6E2E25 #416E25 #25666E
square
#52256E #6E2E25 #416E25 #25666E
split-complementary
#52256E #666E25 #256E2E
monochromatic
#110817 #301640 #52256E #74349C #954BC2

Accessibility & contrast

On white

11.36
#52256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#52256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52256E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52256E#FFFFFF#000000##FFFFFF
##52256E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013870
Deuteranopia (green-blind)
#1C3B6C
Tritanopia (blue-blind)
#4E3346
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52256e;
/* rgb */ color: rgb(82, 37, 110);
/* oklch */ color: oklch(36.4% 0.125 310.0);
Tailwind
colors: {
  custom: {
    50: '#856398',
    500: '#52256e',
    950: '#000000',
  },
}
SCSS
$custom: #52256e;
$custom-light: #856398;
$custom-dark: #000000;
JSON
{
  "hex": "#52256e",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 276.986,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36381,
    "c": 0.12513,
    "h": 310
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#52256E
secondary
#6EA14E
accent
#D94F84
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #52256E

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

Preview Lab → · Contrast checker → · Palette generator →

#52256E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva