#52289B#52289B

#52289B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.174 H 293.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#52289B
RGBrgb(82, 40, 155)
HSLhsl(262, 59%, 38%)
HSVhsv(262, 74%, 61%)
CMYKcmyk(47.1%, 74.2%, 0%, 39.2%)
CIE-LABlab(28.58, 45.07, -55.50)
CIE-LCHlch(28.58, 71.49, 309.08°)
OKLaboklab(40.45% 0.0702 -0.1591)
OKLCHoklch(40.45% 0.174 293.8)
XYZxyz(10.1532, 5.6777, 31.5649)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52289B #719B28
analogous
#28379B #52289B #8B289B
triadic
#52289B #9B5228 #289B52
tetradic
#52289B #9B2837 #719B28 #289B8B
square
#52289B #9B2837 #719B28 #289B8B
split-complementary
#52289B #9B8B28 #379B28
monochromatic
#1F0F3A #381B6A #52289B #6C35CB #8F66D7

Accessibility & contrast

On white

9.83
#52289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#52289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52289B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52289B#FFFFFF#000000##FFFFFF
##52289B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#3C465F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #52289b;
/* rgb */ color: rgb(82, 40, 155);
/* oklch */ color: oklch(40.4% 0.174 293.8);
Tailwind
colors: {
  custom: {
    50: '#8a66b9',
    500: '#52289b',
    950: '#000000',
  },
}
SCSS
$custom: #52289b;
$custom-light: #8a66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52289b",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 261.913,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40447,
    "c": 0.17386,
    "h": 293.8
  },
  "luminance": 0.05678
}

Semantic roles & 50–950 ramp

primary
#52289B
secondary
#9CBD61
accent
#E246A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #52289B

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

Preview Lab → · Contrast checker → · Palette generator →

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