#52238B#52238B

#52238B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.161 H 299.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#52238B
RGBrgb(82, 35, 139)
HSLhsl(267, 60%, 34%)
HSVhsv(267, 75%, 55%)
CMYKcmyk(41%, 74.8%, 0%, 45.5%)
CIE-LABlab(26.33, 43.21, -49.32)
CIE-LCHlch(26.33, 65.57, 311.23°)
OKLaboklab(38.43% 0.0786 -0.1409)
OKLCHoklch(38.43% 0.161 299.2)
XYZxyz(8.7397, 4.8599, 24.8987)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52238B #5C8B23
analogous
#23288B #52238B #86238B
triadic
#52238B #8B5223 #238B52
tetradic
#52238B #8B2328 #5C8B23 #238B86
square
#52238B #8B2328 #5C8B23 #238B86
split-complementary
#52238B #8B8623 #288B23
monochromatic
#180A29 #35175A #52238B #6F2FBC #8E54D4

Accessibility & contrast

On white

10.65
#52238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#52238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52238B
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52238B#FFFFFF#000000##FFFFFF
##52238B1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#443D55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52238b;
/* rgb */ color: rgb(82, 35, 139);
/* oklch */ color: oklch(38.4% 0.161 299.2);
Tailwind
colors: {
  custom: {
    50: '#8863ae',
    500: '#52238b',
    950: '#000000',
  },
}
SCSS
$custom: #52238b;
$custom-light: #8863ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52238b",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 267.115,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38426,
    "c": 0.16134,
    "h": 299.2
  },
  "luminance": 0.0486
}

Semantic roles & 50–950 ramp

primary
#52238B
secondary
#8AB852
accent
#E3459C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52238B

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

Preview Lab → · Contrast checker → · Palette generator →

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