#5237C0#5237C0

#5237C0 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.8% C 0.201 H 284.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5237C0
RGBrgb(82, 55, 192)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(57.3%, 71.4%, 0%, 24.7%)
CIE-LABlab(34.66, 47.91, -67.68)
CIE-LCHlch(34.66, 82.92, 305.30°)
OKLaboklab(45.77% 0.0492 -0.1948)
OKLCHoklch(45.77% 0.201 284.2)
XYZxyz(14.3574, 8.3311, 50.7105)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237C0 #A5C037
analogous
#3760C0 #5237C0 #9637C0
triadic
#5237C0 #C05237 #37C052
tetradic
#5237C0 #C03760 #A5C037 #37C096
square
#5237C0 #C03760 #A5C037 #37C096
split-complementary
#5237C0 #C09637 #60C037
monochromatic
#291C61 #3E2990 #5237C0 #7862D2 #A192E0

Accessibility & contrast

On white

7.88
#5237C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5237C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237C0
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237C0#FFFFFF#000000##FFFFFF
##5237C01.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C4
Deuteranopia (green-blind)
#004DBD
Tritanopia (blue-blind)
#175C78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5237c0;
/* rgb */ color: rgb(82, 55, 192);
/* oklch */ color: oklch(45.8% 0.201 284.2);
Tailwind
colors: {
  custom: {
    50: '#8e70d4',
    500: '#5237c0',
    950: '#000000',
  },
}
SCSS
$custom: #5237c0;
$custom-light: #8e70d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5237c0",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 192
  },
  "hsl": {
    "h": 251.825,
    "s": 55.466,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45768,
    "c": 0.20097,
    "h": 284.2
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#5237C0
secondary
#BECB88
accent
#DF49C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5237C0

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

Preview Lab → · Contrast checker → · Palette generator →

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