#5237C2#5237C2

#5237C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.203 H 283.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5237C2
RGBrgb(82, 55, 194)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 72%, 76%)
CMYKcmyk(57.7%, 71.6%, 0%, 23.9%)
CIE-LABlab(34.84, 48.51, -68.56)
CIE-LCHlch(34.84, 83.98, 305.28°)
OKLaboklab(45.95% 0.0488 -0.1974)
OKLCHoklch(45.95% 0.203 283.9)
XYZxyz(14.5805, 8.4203, 51.8855)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237C2 #A7C237
analogous
#3762C2 #5237C2 #9837C2
triadic
#5237C2 #C25237 #37C252
tetradic
#5237C2 #C23762 #A7C237 #37C298
square
#5237C2 #C23762 #A7C237 #37C298
split-complementary
#5237C2 #C29837 #62C237
monochromatic
#2A1C63 #3E2992 #5237C2 #7963D3 #A293E0

Accessibility & contrast

On white

7.82
#5237C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5237C2
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237C2#FFFFFF#000000##FFFFFF
##5237C21.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#135D79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5237c2;
/* rgb */ color: rgb(82, 55, 194);
/* oklch */ color: oklch(46.0% 0.203 283.9);
Tailwind
colors: {
  custom: {
    50: '#8f71d6',
    500: '#5237c2',
    950: '#000000',
  },
}
SCSS
$custom: #5237c2;
$custom-light: #8f71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5237c2",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 251.655,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45951,
    "c": 0.20336,
    "h": 283.9
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5237C2

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

Preview Lab → · Contrast checker → · Palette generator →

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