#5237D1#5237D1

#5237D1 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.221 H 281.9°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5237D1
RGBrgb(82, 55, 209)
HSLhsl(251, 63%, 52%)
HSVhsv(251, 74%, 82%)
CMYKcmyk(60.8%, 73.7%, 0%, 18%)
CIE-LABlab(36.23, 52.95, -75.01)
CIE-LCHlch(36.23, 91.82, 305.22°)
OKLaboklab(47.35% 0.0456 -0.2163)
OKLCHoklch(47.35% 0.221 281.9)
XYZxyz(16.3509, 9.1285, 61.2096)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237D1 #B6D137
analogous
#3769D1 #5237D1 #9F37D1
triadic
#5237D1 #D15237 #37D152
tetradic
#5237D1 #D13769 #B6D137 #37D19F
square
#5237D1 #D13769 #B6D137 #37D19F
split-complementary
#5237D1 #D19F37 #69D137
monochromatic
#2A1A73 #3C26A5 #5237D1 #7D69DC #A89BE8

Accessibility & contrast

On white

7.43
#5237D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5237D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5237D1#FFFFFF#000000##FFFFFF
##5237D11.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD5
Deuteranopia (green-blind)
#0050CE
Tritanopia (blue-blind)
#006281
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5237d1;
/* rgb */ color: rgb(82, 55, 209);
/* oklch */ color: oklch(47.4% 0.221 281.9);
Tailwind
colors: {
  custom: {
    50: '#9171e0',
    500: '#5237d1',
    950: '#000000',
  },
}
SCSS
$custom: #5237d1;
$custom-light: #9171e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5237d1",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 209
  },
  "hsl": {
    "h": 250.519,
    "s": 62.602,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47354,
    "c": 0.22105,
    "h": 281.9
  },
  "luminance": 0.0913
}

Semantic roles & 50–950 ramp

primary
#5237D1
secondary
#C8D490
accent
#E642C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237D1

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

Preview Lab → · Contrast checker → · Palette generator →

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