#5237CD#5237CD

#5237CD is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.216 H 282.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5237CD
RGBrgb(82, 55, 205)
HSLhsl(251, 60%, 51%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(60%, 73.2%, 0%, 19.6%)
CIE-LABlab(35.85, 51.77, -73.31)
CIE-LCHlch(35.85, 89.75, 305.23°)
OKLaboklab(46.98% 0.0465 -0.2113)
OKLCHoklch(46.98% 0.216 282.4)
XYZxyz(15.8619, 8.9329, 58.6341)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237CD #B2CD37
analogous
#3767CD #5237CD #9D37CD
triadic
#5237CD #CD5237 #37CD52
tetradic
#5237CD #CD3767 #B2CD37 #37CD9D
square
#5237CD #CD3767 #B2CD37 #37CD9D
split-complementary
#5237CD #CD9D37 #67CD37
monochromatic
#2A1C6E #3D289F #5237CD #7C68D9 #A799E5

Accessibility & contrast

On white

7.54
#5237CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5237CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237CD
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237CD#FFFFFF#000000##FFFFFF
##5237CD1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5237cd;
/* rgb */ color: rgb(82, 55, 205);
/* oklch */ color: oklch(47.0% 0.216 282.4);
Tailwind
colors: {
  custom: {
    50: '#9071de',
    500: '#5237cd',
    950: '#000000',
  },
}
SCSS
$custom: #5237cd;
$custom-light: #9071de;
$custom-dark: #000000;
JSON
{
  "hex": "#5237cd",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 205
  },
  "hsl": {
    "h": 250.8,
    "s": 60,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46975,
    "c": 0.21638,
    "h": 282.4
  },
  "luminance": 0.08934
}

Semantic roles & 50–950 ramp

primary
#5237CD
secondary
#C5D18F
accent
#E345C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237CD

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

Preview Lab → · Contrast checker → · Palette generator →

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