#5237CA#5237CA

#5237CA is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.213 H 282.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5237CA
RGBrgb(82, 55, 202)
HSLhsl(251, 58%, 50%)
HSVhsv(251, 73%, 79%)
CMYKcmyk(59.4%, 72.8%, 0%, 20.8%)
CIE-LABlab(35.58, 50.88, -72.02)
CIE-LCHlch(35.58, 88.18, 305.24°)
OKLaboklab(46.69% 0.0471 -0.2076)
OKLCHoklch(46.69% 0.213 282.8)
XYZxyz(15.5032, 8.7894, 56.7452)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237CA #AFCA37
analogous
#3766CA #5237CA #9B37CA
triadic
#5237CA #CA5237 #37CA52
tetradic
#5237CA #CA3766 #AFCA37 #37CA9B
square
#5237CA #CA3766 #AFCA37 #37CA9B
split-complementary
#5237CA #CA9B37 #66CA37
monochromatic
#2B1C6A #3E299B #5237CA #7C67D7 #A698E4

Accessibility & contrast

On white

7.61
#5237CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5237CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237CA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237CA#FFFFFF#000000##FFFFFF
##5237CA1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#00607D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5237ca;
/* rgb */ color: rgb(82, 55, 202);
/* oklch */ color: oklch(46.7% 0.213 282.8);
Tailwind
colors: {
  custom: {
    50: '#9071db',
    500: '#5237ca',
    950: '#000000',
  },
}
SCSS
$custom: #5237ca;
$custom-light: #9071db;
$custom-dark: #000000;
JSON
{
  "hex": "#5237ca",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 251.02,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46693,
    "c": 0.21285,
    "h": 282.8
  },
  "luminance": 0.0879
}

Semantic roles & 50–950 ramp

primary
#5237CA
secondary
#C3CF8E
accent
#E146C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237CA

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

Preview Lab → · Contrast checker → · Palette generator →

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