#5237B4#5237B4

#5237B4 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.186 H 286.0°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5237B4
RGBrgb(82, 55, 180)
HSLhsl(253, 53%, 46%)
HSVhsv(253, 69%, 71%)
CMYKcmyk(54.4%, 69.4%, 0%, 29.4%)
CIE-LABlab(33.61, 44.33, -62.32)
CIE-LCHlch(33.61, 76.48, 305.42°)
OKLaboklab(44.69% 0.0515 -0.1792)
OKLCHoklch(44.69% 0.186 286)
XYZxyz(13.0816, 7.8208, 43.9914)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237B4 #99B437
analogous
#375AB4 #5237B4 #9037B4
triadic
#5237B4 #B45237 #37B452
tetradic
#5237B4 #B4375A #99B437 #37B490
square
#5237B4 #B4375A #99B437 #37B490
split-complementary
#5237B4 #B49037 #5AB437
monochromatic
#271A56 #3D2985 #5237B4 #745BCD #9C8ADB

Accessibility & contrast

On white

8.19
#5237B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5237B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5237B4#FFFFFF#000000##FFFFFF
##5237B41.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#285771
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5237b4;
/* rgb */ color: rgb(82, 55, 180);
/* oklch */ color: oklch(44.7% 0.186 286.0);
Tailwind
colors: {
  custom: {
    50: '#8c70cb',
    500: '#5237b4',
    950: '#000000',
  },
}
SCSS
$custom: #5237b4;
$custom-light: #8c70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5237b4",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 180
  },
  "hsl": {
    "h": 252.96,
    "s": 53.191,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4469,
    "c": 0.18641,
    "h": 286
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#5237B4
secondary
#B7C681
accent
#DD4BBD
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5237B4

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

Preview Lab → · Contrast checker → · Palette generator →

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