#5237C8#5237C8

#5237C8 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.210 H 283.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5237C8
RGBrgb(82, 55, 200)
HSLhsl(251, 57%, 50%)
HSVhsv(251, 73%, 78%)
CMYKcmyk(59%, 72.5%, 0%, 21.6%)
CIE-LABlab(35.39, 50.29, -71.16)
CIE-LCHlch(35.39, 87.14, 305.25°)
OKLaboklab(46.51% 0.0476 -0.205)
OKLCHoklch(46.51% 0.21 283.1)
XYZxyz(15.2680, 8.6953, 55.5062)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237C8 #ADC837
analogous
#3765C8 #5237C8 #9A37C8
triadic
#5237C8 #C85237 #37C852
tetradic
#5237C8 #C83765 #ADC837 #37C89A
square
#5237C8 #C83765 #ADC837 #37C89A
split-complementary
#5237C8 #C89A37 #65C837
monochromatic
#2B1D68 #3E2A98 #5237C8 #7C67D5 #A597E2

Accessibility & contrast

On white

7.67
#5237C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5237C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237C8
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237C8#FFFFFF#000000##FFFFFF
##5237C81.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5237c8;
/* rgb */ color: rgb(82, 55, 200);
/* oklch */ color: oklch(46.5% 0.210 283.1);
Tailwind
colors: {
  custom: {
    50: '#9071da',
    500: '#5237c8',
    950: '#000000',
  },
}
SCSS
$custom: #5237c8;
$custom-light: #9071da;
$custom-dark: #000000;
JSON
{
  "hex": "#5237c8",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 200
  },
  "hsl": {
    "h": 251.172,
    "s": 56.863,
    "l": 50
  },
  "oklch": {
    "l": 0.46506,
    "c": 0.21049,
    "h": 283.1
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#5237C8
secondary
#C2CE8D
accent
#E048C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237C8

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

Preview Lab → · Contrast checker → · Palette generator →

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