#5237C5#5237C5

#5237C5 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.2% C 0.207 H 283.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5237C5
RGBrgb(82, 55, 197)
HSLhsl(251, 56%, 49%)
HSVhsv(251, 72%, 77%)
CMYKcmyk(58.4%, 72.1%, 0%, 22.7%)
CIE-LABlab(35.12, 49.40, -69.86)
CIE-LCHlch(35.12, 85.56, 305.26°)
OKLaboklab(46.23% 0.0482 -0.2013)
OKLCHoklch(46.23% 0.207 283.5)
XYZxyz(14.9208, 8.5565, 53.6778)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237C5 #AAC537
analogous
#3763C5 #5237C5 #9937C5
triadic
#5237C5 #C55237 #37C552
tetradic
#5237C5 #C53763 #AAC537 #37C599
square
#5237C5 #C53763 #AAC537 #37C599
split-complementary
#5237C5 #C59937 #63C537
monochromatic
#2A1C65 #3E2A95 #5237C5 #7A65D4 #A495E1

Accessibility & contrast

On white

7.75
#5237C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5237C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237C5
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237C5#FFFFFF#000000##FFFFFF
##5237C51.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#0A5E7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5237c5;
/* rgb */ color: rgb(82, 55, 197);
/* oklch */ color: oklch(46.2% 0.207 283.5);
Tailwind
colors: {
  custom: {
    50: '#8f71d8',
    500: '#5237c5',
    950: '#000000',
  },
}
SCSS
$custom: #5237c5;
$custom-light: #8f71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5237c5",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 197
  },
  "hsl": {
    "h": 251.408,
    "s": 56.349,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46228,
    "c": 0.20694,
    "h": 283.5
  },
  "luminance": 0.08557
}

Semantic roles & 50–950 ramp

primary
#5237C5
secondary
#C0CD8B
accent
#E048C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5237C5

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

Preview Lab → · Contrast checker → · Palette generator →

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