#5237A4#5237A4

#5237A4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.3% C 0.166 H 288.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5237A4
RGBrgb(82, 55, 164)
HSLhsl(255, 50%, 43%)
HSVhsv(255, 66%, 64%)
CMYKcmyk(50%, 66.5%, 0%, 35.7%)
CIE-LABlab(32.27, 39.55, -54.94)
CIE-LCHlch(32.27, 67.70, 305.75°)
OKLaboklab(43.32% 0.0539 -0.1575)
OKLCHoklch(43.32% 0.166 288.9)
XYZxyz(11.5448, 7.2061, 35.8974)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237A4 #89A437
analogous
#3753A4 #5237A4 #8837A4
triadic
#5237A4 #A45237 #37A452
tetradic
#5237A4 #A43753 #89A437 #37A488
square
#5237A4 #A43753 #89A437 #37A488
split-complementary
#5237A4 #A48837 #53A437
monochromatic
#241848 #3B2876 #5237A4 #6F53C5 #9681D5

Accessibility & contrast

On white

8.60
#5237A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5237A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237A4
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237A4#FFFFFF#000000##FFFFFF
##5237A41.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#365268
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5237a4;
/* rgb */ color: rgb(82, 55, 164);
/* oklch */ color: oklch(43.3% 0.166 288.9);
Tailwind
colors: {
  custom: {
    50: '#8a6fc0',
    500: '#5237a4',
    950: '#000000',
  },
}
SCSS
$custom: #5237a4;
$custom-light: #8a6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5237a4",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 254.862,
    "s": 49.772,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43316,
    "c": 0.16644,
    "h": 288.9
  },
  "luminance": 0.07207
}

Semantic roles & 50–950 ramp

primary
#5237A4
secondary
#ADBE79
accent
#D94FB7
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5237A4

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

Preview Lab → · Contrast checker → · Palette generator →

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