#5237C1#5237C1

#5237C1 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.9% C 0.202 H 284.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5237C1
RGBrgb(82, 55, 193)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 72%, 76%)
CMYKcmyk(57.5%, 71.5%, 0%, 24.3%)
CIE-LABlab(34.75, 48.21, -68.12)
CIE-LCHlch(34.75, 83.45, 305.29°)
OKLaboklab(45.86% 0.049 -0.1961)
OKLCHoklch(45.86% 0.202 284)
XYZxyz(14.4686, 8.3756, 51.2960)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237C1 #A6C137
analogous
#3761C1 #5237C1 #9737C1
triadic
#5237C1 #C15237 #37C152
tetradic
#5237C1 #C13761 #A6C137 #37C197
square
#5237C1 #C13761 #A6C137 #37C197
split-complementary
#5237C1 #C19737 #61C137
monochromatic
#2A1C62 #3E2991 #5237C1 #7963D2 #A292E0

Accessibility & contrast

On white

7.85
#5237C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5237C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5237C1#FFFFFF#000000##FFFFFF
##5237C11.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C5
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#155C78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5237c1;
/* rgb */ color: rgb(82, 55, 193);
/* oklch */ color: oklch(45.9% 0.202 284.0);
Tailwind
colors: {
  custom: {
    50: '#8e70d5',
    500: '#5237c1',
    950: '#000000',
  },
}
SCSS
$custom: #5237c1;
$custom-light: #8e70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5237c1",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 251.739,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45859,
    "c": 0.20217,
    "h": 284
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#5237C1
secondary
#BECB89
accent
#DF49C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5237C1

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

Preview Lab → · Contrast checker → · Palette generator →

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