#52237D#52237D

#52237D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.145 H 304.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#52237D
RGBrgb(82, 35, 125)
HSLhsl(271, 56%, 31%)
HSVhsv(271, 72%, 49%)
CMYKcmyk(34.4%, 72%, 0%, 51%)
CIE-LABlab(25.19, 39.57, -42.39)
CIE-LCHlch(25.19, 57.99, 313.03°)
OKLaboklab(37.26% 0.0813 -0.1205)
OKLCHoklch(37.26% 0.145 304)
XYZxyz(7.7815, 4.4766, 19.8522)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52237D #4E7D23
analogous
#25237D #52237D #7D237B
triadic
#52237D #7D5223 #237D52
tetradic
#52237D #7D2523 #4E7D23 #237B7D
square
#52237D #7D2523 #4E7D23 #237B7D
split-complementary
#52237D #7B7D23 #237D25
monochromatic
#13081D #33164D #52237D #7130AD #904DCD

Accessibility & contrast

On white

11.08
#52237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#52237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52237D
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52237D#FFFFFF#000000##FFFFFF
##52237D1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#4A384D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52237d;
/* rgb */ color: rgb(82, 35, 125);
/* oklch */ color: oklch(37.3% 0.145 304.0);
Tailwind
colors: {
  custom: {
    50: '#8762a3',
    500: '#52237d',
    950: '#000000',
  },
}
SCSS
$custom: #52237d;
$custom-light: #8762a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52237d",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 271.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37257,
    "c": 0.1454,
    "h": 304
  },
  "luminance": 0.04477
}

Semantic roles & 50–950 ramp

primary
#52237D
secondary
#7CAF4C
accent
#E04891
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52237D

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

Preview Lab → · Contrast checker → · Palette generator →

#52237D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva