#52256A#52256A

#52256A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.1% C 0.120 H 311.9°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#52256A
RGBrgb(82, 37, 106)
HSLhsl(279, 48%, 28%)
HSVhsv(279, 65%, 42%)
CMYKcmyk(22.6%, 65.1%, 0%, 58.4%)
CIE-LABlab(24.19, 33.76, -31.85)
CIE-LCHlch(24.19, 46.42, 316.67°)
OKLaboklab(36.1% 0.0805 -0.0896)
OKLCHoklch(36.1% 0.12 311.9)
XYZxyz(6.7423, 4.1577, 14.0802)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52256A #3D6A25
analogous
#2F256A #52256A #6A255F
triadic
#52256A #6A5225 #256A52
tetradic
#52256A #6A2F25 #3D6A25 #255F6A
square
#52256A #6A2F25 #3D6A25 #255F6A
split-complementary
#52256A #5F6A25 #256A2F
monochromatic
#120817 #2F153D #52256A #753597 #974AC0

Accessibility & contrast

On white

11.47
#52256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#52256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52256A
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52256A#FFFFFF#000000##FFFFFF
##52256A1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09376C
Deuteranopia (green-blind)
#1F3A68
Tritanopia (blue-blind)
#4F3244
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52256a;
/* rgb */ color: rgb(82, 37, 106);
/* oklch */ color: oklch(36.1% 0.120 311.9);
Tailwind
colors: {
  custom: {
    50: '#856295',
    500: '#52256a',
    950: '#000000',
  },
}
SCSS
$custom: #52256a;
$custom-light: #856295;
$custom-dark: #000000;
JSON
{
  "hex": "#52256a",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 279.13,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36096,
    "c": 0.12045,
    "h": 311.9
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#52256A
secondary
#699D4E
accent
#D8507F
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52256A

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

Preview Lab → · Contrast checker → · Palette generator →

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