#52268B#52268B

#52268B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.158 H 298.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#52268B
RGBrgb(82, 38, 139)
HSLhsl(266, 57%, 35%)
HSVhsv(266, 73%, 55%)
CMYKcmyk(41%, 72.7%, 0%, 45.5%)
CIE-LABlab(26.86, 41.73, -48.46)
CIE-LCHlch(26.86, 63.95, 310.73°)
OKLaboklab(38.8% 0.0756 -0.1384)
OKLCHoklch(38.8% 0.158 298.6)
XYZxyz(8.8318, 5.0440, 24.9294)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52268B #5F8B26
analogous
#262C8B #52268B #85268B
triadic
#52268B #8B5226 #268B52
tetradic
#52268B #8B262C #5F8B26 #268B85
square
#52268B #8B262C #5F8B26 #268B85
split-complementary
#52268B #8B8526 #2C8B26
monochromatic
#190C2B #36195B #52268B #6E33BB #8E5AD2

Accessibility & contrast

On white

10.45
#52268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#52268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52268B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52268B#FFFFFF#000000##FFFFFF
##52268B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#443F56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52268b;
/* rgb */ color: rgb(82, 38, 139);
/* oklch */ color: oklch(38.8% 0.158 298.6);
Tailwind
colors: {
  custom: {
    50: '#8864ae',
    500: '#52268b',
    950: '#000000',
  },
}
SCSS
$custom: #52268b;
$custom-light: #8864ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52268b",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 266.139,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38801,
    "c": 0.15767,
    "h": 298.6
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#52268B
secondary
#8DB756
accent
#E0479E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52268B

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

Preview Lab → · Contrast checker → · Palette generator →

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