#5237A2#5237A2

#5237A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.1% C 0.164 H 289.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5237A2
RGBrgb(82, 55, 162)
HSLhsl(255, 49%, 43%)
HSVhsv(255, 66%, 64%)
CMYKcmyk(49.4%, 66%, 0%, 36.5%)
CIE-LABlab(32.11, 38.96, -53.99)
CIE-LCHlch(32.11, 66.58, 305.81°)
OKLaboklab(43.15% 0.0541 -0.1547)
OKLCHoklch(43.15% 0.164 289.3)
XYZxyz(11.3656, 7.1344, 34.9536)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237A2 #87A237
analogous
#3752A2 #5237A2 #8737A2
triadic
#5237A2 #A25237 #37A252
tetradic
#5237A2 #A23752 #87A237 #37A287
square
#5237A2 #A23752 #87A237 #37A287
split-complementary
#5237A2 #A28737 #52A237
monochromatic
#241847 #3B2774 #5237A2 #6F52C4 #9580D4

Accessibility & contrast

On white

8.65
#5237A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5237A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237A2
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237A2#FFFFFF#000000##FFFFFF
##5237A21.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#375167
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5237a2;
/* rgb */ color: rgb(82, 55, 162);
/* oklch */ color: oklch(43.1% 0.164 289.3);
Tailwind
colors: {
  custom: {
    50: '#8a6fbe',
    500: '#5237a2',
    950: '#000000',
  },
}
SCSS
$custom: #5237a2;
$custom-light: #8a6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5237a2",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 255.14,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4315,
    "c": 0.16389,
    "h": 289.3
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#5237A2
secondary
#ACBD78
accent
#D94FB6
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5237A2

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

Preview Lab → · Contrast checker → · Palette generator →

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