#5237AA#5237AA

#5237AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.174 H 287.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5237AA
RGBrgb(82, 55, 170)
HSLhsl(254, 51%, 44%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(51.8%, 67.6%, 0%, 33.3%)
CIE-LABlab(32.76, 41.34, -57.74)
CIE-LCHlch(32.76, 71.02, 305.60°)
OKLaboklab(43.82% 0.0531 -0.1657)
OKLCHoklch(43.82% 0.174 287.8)
XYZxyz(12.0994, 7.4279, 38.8186)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237AA #8FAA37
analogous
#3756AA #5237AA #8C37AA
triadic
#5237AA #AA5237 #37AA52
tetradic
#5237AA #AA3756 #8FAA37 #37AA8C
square
#5237AA #AA3756 #8FAA37 #37AA8C
split-complementary
#5237AA #AA8C37 #56AA37
monochromatic
#25194E #3C287C #5237AA #7156C8 #9884D7

Accessibility & contrast

On white

8.45
#5237AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5237AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5237AA#FFFFFF#000000##FFFFFF
##5237AA1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#31546C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5237aa;
/* rgb */ color: rgb(82, 55, 170);
/* oklch */ color: oklch(43.8% 0.174 287.8);
Tailwind
colors: {
  custom: {
    50: '#8b70c4',
    500: '#5237aa',
    950: '#000000',
  },
}
SCSS
$custom: #5237aa;
$custom-light: #8b70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5237aa",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 170
  },
  "hsl": {
    "h": 254.087,
    "s": 51.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43822,
    "c": 0.174,
    "h": 287.8
  },
  "luminance": 0.07428
}

Semantic roles & 50–950 ramp

primary
#5237AA
secondary
#B1C17C
accent
#DB4DB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5237AA

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

Preview Lab → · Contrast checker → · Palette generator →

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