#5237C4#5237C4

#5237C4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.1% C 0.206 H 283.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5237C4
RGBrgb(82, 55, 196)
HSLhsl(251, 56%, 49%)
HSVhsv(251, 72%, 77%)
CMYKcmyk(58.2%, 71.9%, 0%, 23.1%)
CIE-LABlab(35.02, 49.10, -69.43)
CIE-LCHlch(35.02, 85.04, 305.27°)
OKLaboklab(46.14% 0.0484 -0.2)
OKLCHoklch(46.14% 0.206 283.6)
XYZxyz(14.8066, 8.5108, 53.0764)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237C4 #A9C437
analogous
#3763C4 #5237C4 #9837C4
triadic
#5237C4 #C45237 #37C452
tetradic
#5237C4 #C43763 #A9C437 #37C498
square
#5237C4 #C43763 #A9C437 #37C498
split-complementary
#5237C4 #C49837 #63C437
monochromatic
#2A1C64 #3E2A94 #5237C4 #7A65D4 #A394E1

Accessibility & contrast

On white

7.77
#5237C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5237C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5237C4#FFFFFF#000000##FFFFFF
##5237C41.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#004EC1
Tritanopia (blue-blind)
#0E5D7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5237c4;
/* rgb */ color: rgb(82, 55, 196);
/* oklch */ color: oklch(46.1% 0.206 283.6);
Tailwind
colors: {
  custom: {
    50: '#8f71d7',
    500: '#5237c4',
    950: '#000000',
  },
}
SCSS
$custom: #5237c4;
$custom-light: #8f71d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5237c4",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 251.489,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46135,
    "c": 0.20575,
    "h": 283.6
  },
  "luminance": 0.08512
}

Semantic roles & 50–950 ramp

primary
#5237C4
secondary
#C0CC8B
accent
#DF48C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237C4

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

Preview Lab → · Contrast checker → · Palette generator →

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