#52268F#52268F

#52268F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.162 H 297.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#52268F
RGBrgb(82, 38, 143)
HSLhsl(265, 58%, 35%)
HSVhsv(265, 73%, 56%)
CMYKcmyk(42.7%, 73.4%, 0%, 43.9%)
CIE-LABlab(27.19, 42.80, -50.39)
CIE-LCHlch(27.19, 66.12, 310.34°)
OKLaboklab(39.14% 0.0748 -0.1441)
OKLCHoklch(39.14% 0.162 297.4)
XYZxyz(9.1294, 5.1631, 26.4969)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52268F #638F26
analogous
#262E8F #52268F #86268F
triadic
#52268F #8F5226 #268F52
tetradic
#52268F #8F262E #638F26 #268F86
square
#52268F #8F262E #638F26 #268F86
split-complementary
#52268F #8F8626 #2E8F26
monochromatic
#1B0C2E #36195F #52268F #6E33BF #8E5CD4

Accessibility & contrast

On white

10.33
#52268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52268F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52268F#FFFFFF#000000##FFFFFF
##52268F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#434058
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52268f;
/* rgb */ color: rgb(82, 38, 143);
/* oklch */ color: oklch(39.1% 0.162 297.4);
Tailwind
colors: {
  custom: {
    50: '#8864b1',
    500: '#52268f',
    950: '#000000',
  },
}
SCSS
$custom: #52268f;
$custom-light: #8864b1;
$custom-dark: #000000;
JSON
{
  "hex": "#52268f",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 265.143,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39142,
    "c": 0.16231,
    "h": 297.4
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#52268F
secondary
#90B958
accent
#E147A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #52268F

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

Preview Lab → · Contrast checker → · Palette generator →

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