#5237CC#5237CC

#5237CC is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.215 H 282.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5237CC
RGBrgb(82, 55, 204)
HSLhsl(251, 59%, 51%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(59.8%, 73%, 0%, 20%)
CIE-LABlab(35.76, 51.47, -72.88)
CIE-LCHlch(35.76, 89.23, 305.23°)
OKLaboklab(46.88% 0.0467 -0.2101)
OKLCHoklch(46.88% 0.215 282.5)
XYZxyz(15.7416, 8.8848, 58.0005)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237CC #B1CC37
analogous
#3767CC #5237CC #9C37CC
triadic
#5237CC #CC5237 #37CC52
tetradic
#5237CC #CC3767 #B1CC37 #37CC9C
square
#5237CC #CC3767 #B1CC37 #37CC9C
split-complementary
#5237CC #CC9C37 #67CC37
monochromatic
#2A1C6D #3D289E #5237CC #7C68D8 #A699E5

Accessibility & contrast

On white

7.56
#5237CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5237CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5237CC#FFFFFF#000000##FFFFFF
##5237CC1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5237cc;
/* rgb */ color: rgb(82, 55, 204);
/* oklch */ color: oklch(46.9% 0.215 282.5);
Tailwind
colors: {
  custom: {
    50: '#9071dd',
    500: '#5237cc',
    950: '#000000',
  },
}
SCSS
$custom: #5237cc;
$custom-light: #9071dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5237cc",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 250.872,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46881,
    "c": 0.2152,
    "h": 282.5
  },
  "luminance": 0.08886
}

Semantic roles & 50–950 ramp

primary
#5237CC
secondary
#C4D08E
accent
#E345C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237CC

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

Preview Lab → · Contrast checker → · Palette generator →

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