#52268E#52268E

#52268E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.161 H 297.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#52268E
RGBrgb(82, 38, 142)
HSLhsl(265, 58%, 35%)
HSVhsv(265, 73%, 56%)
CMYKcmyk(42.3%, 73.2%, 0%, 44.3%)
CIE-LABlab(27.11, 42.53, -49.91)
CIE-LCHlch(27.11, 65.57, 310.44°)
OKLaboklab(39.06% 0.075 -0.1426)
OKLCHoklch(39.06% 0.161 297.7)
XYZxyz(9.0540, 5.1329, 26.0997)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52268E #628E26
analogous
#262E8E #52268E #86268E
triadic
#52268E #8E5226 #268E52
tetradic
#52268E #8E262E #628E26 #268E86
square
#52268E #8E262E #628E26 #268E86
split-complementary
#52268E #8E8626 #2E8E26
monochromatic
#1A0C2D #36195E #52268E #6E33BE #8E5BD3

Accessibility & contrast

On white

10.36
#52268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#52268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52268E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52268E#FFFFFF#000000##FFFFFF
##52268E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#434057
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52268e;
/* rgb */ color: rgb(82, 38, 142);
/* oklch */ color: oklch(39.1% 0.161 297.7);
Tailwind
colors: {
  custom: {
    50: '#8864b0',
    500: '#52268e',
    950: '#000000',
  },
}
SCSS
$custom: #52268e;
$custom-light: #8864b0;
$custom-dark: #000000;
JSON
{
  "hex": "#52268e",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 265.385,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39056,
    "c": 0.16115,
    "h": 297.7
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#52268E
secondary
#8FB858
accent
#E147A0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #52268E

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

Preview Lab → · Contrast checker → · Palette generator →

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