#52286B#52286B

#52286B is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.6% C 0.117 H 310.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#52286B
RGBrgb(82, 40, 107)
HSLhsl(278, 46%, 29%)
HSVhsv(278, 63%, 42%)
CMYKcmyk(23.4%, 62.6%, 0%, 58%)
CIE-LABlab(24.87, 32.34, -31.41)
CIE-LCHlch(24.87, 45.08, 315.84°)
OKLaboklab(36.61% 0.0764 -0.0883)
OKLCHoklch(36.61% 0.117 310.8)
XYZxyz(6.8918, 4.3731, 14.3881)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52286B #416B28
analogous
#31286B #52286B #6B2863
triadic
#52286B #6B5228 #286B52
tetradic
#52286B #6B3128 #416B28 #28636B
square
#52286B #6B3128 #416B28 #28636B
split-complementary
#52286B #636B28 #286B31
monochromatic
#110816 #30173E #52286B #743998 #9550BE

Accessibility & contrast

On white

11.20
#52286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52286B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52286B#FFFFFF#000000##FFFFFF
##52286B1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10396D
Deuteranopia (green-blind)
#223C69
Tritanopia (blue-blind)
#4F3445
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52286b;
/* rgb */ color: rgb(82, 40, 107);
/* oklch */ color: oklch(36.6% 0.117 310.8);
Tailwind
colors: {
  custom: {
    50: '#856496',
    500: '#52286b',
    950: '#000000',
  },
}
SCSS
$custom: #52286b;
$custom-light: #856496;
$custom-dark: #000000;
JSON
{
  "hex": "#52286b",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 277.612,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36613,
    "c": 0.11673,
    "h": 310.8
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#52286B
secondary
#6E9D51
accent
#D55383
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52286B

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

Preview Lab → · Contrast checker → · Palette generator →

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