#5237CE#5237CE

#5237CE is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.218 H 282.3°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5237CE
RGBrgb(82, 55, 206)
HSLhsl(251, 61%, 51%)
HSVhsv(251, 73%, 81%)
CMYKcmyk(60.2%, 73.3%, 0%, 19.2%)
CIE-LABlab(35.95, 52.06, -73.74)
CIE-LCHlch(35.95, 90.27, 305.23°)
OKLaboklab(47.07% 0.0462 -0.2126)
OKLCHoklch(47.07% 0.218 282.3)
XYZxyz(15.9830, 8.9813, 59.2719)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237CE #B3CE37
analogous
#3767CE #5237CE #9D37CE
triadic
#5237CE #CE5237 #37CE52
tetradic
#5237CE #CE3767 #B3CE37 #37CE9D
square
#5237CE #CE3767 #B3CE37 #37CE9D
split-complementary
#5237CE #CE9D37 #67CE37
monochromatic
#2A1B6F #3D27A0 #5237CE #7D68DA #A799E6

Accessibility & contrast

On white

7.51
#5237CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5237CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237CE
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237CE#FFFFFF#000000##FFFFFF
##5237CE1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D2
Deuteranopia (green-blind)
#004FCB
Tritanopia (blue-blind)
#006180
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5237ce;
/* rgb */ color: rgb(82, 55, 206);
/* oklch */ color: oklch(47.1% 0.218 282.3);
Tailwind
colors: {
  custom: {
    50: '#9171de',
    500: '#5237ce',
    950: '#000000',
  },
}
SCSS
$custom: #5237ce;
$custom-light: #9171de;
$custom-dark: #000000;
JSON
{
  "hex": "#5237ce",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 206
  },
  "hsl": {
    "h": 250.728,
    "s": 60.643,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4707,
    "c": 0.21755,
    "h": 282.3
  },
  "luminance": 0.08982
}

Semantic roles & 50–950 ramp

primary
#5237CE
secondary
#C6D28F
accent
#E444C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237CE

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

Preview Lab → · Contrast checker → · Palette generator →

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