#5237C3#5237C3

#5237C3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.0% C 0.205 H 283.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5237C3
RGBrgb(82, 55, 195)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 72%, 76%)
CMYKcmyk(57.9%, 71.8%, 0%, 23.5%)
CIE-LABlab(34.93, 48.80, -68.99)
CIE-LCHlch(34.93, 84.51, 305.27°)
OKLaboklab(46.04% 0.0486 -0.1987)
OKLCHoklch(46.04% 0.205 283.7)
XYZxyz(14.6932, 8.4654, 52.4789)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237C3 #A8C337
analogous
#3762C3 #5237C3 #9837C3
triadic
#5237C3 #C35237 #37C352
tetradic
#5237C3 #C33762 #A8C337 #37C398
square
#5237C3 #C33762 #A8C337 #37C398
split-complementary
#5237C3 #C39837 #62C337
monochromatic
#2A1C64 #3E2A93 #5237C3 #7964D3 #A394E1

Accessibility & contrast

On white

7.80
#5237C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5237C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237C3
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237C3#FFFFFF#000000##FFFFFF
##5237C31.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C7
Deuteranopia (green-blind)
#004EC0
Tritanopia (blue-blind)
#115D79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5237c3;
/* rgb */ color: rgb(82, 55, 195);
/* oklch */ color: oklch(46.0% 0.205 283.7);
Tailwind
colors: {
  custom: {
    50: '#8f71d6',
    500: '#5237c3',
    950: '#000000',
  },
}
SCSS
$custom: #5237c3;
$custom-light: #8f71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5237c3",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 251.571,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46043,
    "c": 0.20456,
    "h": 283.7
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5237C3

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

Preview Lab → · Contrast checker → · Palette generator →

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