#5237AE#5237AE

#5237AE is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.179 H 287.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5237AE
RGBrgb(82, 55, 174)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 68%, 68%)
CMYKcmyk(52.9%, 68.4%, 0%, 31.8%)
CIE-LABlab(33.10, 42.54, -59.59)
CIE-LCHlch(33.10, 73.21, 305.52°)
OKLaboklab(44.17% 0.0525 -0.1711)
OKLCHoklch(44.17% 0.179 287)
XYZxyz(12.4836, 7.5816, 40.8418)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237AE #93AE37
analogous
#3758AE #5237AE #8D37AE
triadic
#5237AE #AE5237 #37AE52
tetradic
#5237AE #AE3758 #93AE37 #37AE8D
square
#5237AE #AE3758 #93AE37 #37AE8D
split-complementary
#5237AE #AE8D37 #58AE37
monochromatic
#261A51 #3C287F #5237AE #7258CA #9986D9

Accessibility & contrast

On white

8.35
#5237AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5237AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237AE
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237AE#FFFFFF#000000##FFFFFF
##5237AE1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#2E556E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5237ae;
/* rgb */ color: rgb(82, 55, 174);
/* oklch */ color: oklch(44.2% 0.179 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b70c7',
    500: '#5237ae',
    950: '#000000',
  },
}
SCSS
$custom: #5237ae;
$custom-light: #8b70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5237ae",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 253.613,
    "s": 51.965,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44166,
    "c": 0.17899,
    "h": 287
  },
  "luminance": 0.07582
}

Semantic roles & 50–950 ramp

primary
#5237AE
secondary
#B3C37E
accent
#DB4CBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5237AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5237AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva