#5237BC#5237BC

#5237BC is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.196 H 284.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5237BC
RGBrgb(82, 55, 188)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 74%)
CMYKcmyk(56.4%, 70.7%, 0%, 26.3%)
CIE-LABlab(34.31, 46.72, -65.91)
CIE-LCHlch(34.31, 80.79, 305.33°)
OKLaboklab(45.4% 0.05 -0.1897)
OKLCHoklch(45.4% 0.196 284.8)
XYZxyz(13.9202, 8.1562, 48.4080)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237BC #A1BC37
analogous
#375FBC #5237BC #9437BC
triadic
#5237BC #BC5237 #37BC52
tetradic
#5237BC #BC375F #A1BC37 #37BC94
square
#5237BC #BC375F #A1BC37 #37BC94
split-complementary
#5237BC #BC9437 #5FBC37
monochromatic
#291B5D #3D298D #5237BC #7760D0 #9F8FDE

Accessibility & contrast

On white

7.98
#5237BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5237BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237BC
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237BC#FFFFFF#000000##FFFFFF
##5237BC1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#1E5A76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5237bc;
/* rgb */ color: rgb(82, 55, 188);
/* oklch */ color: oklch(45.4% 0.196 284.8);
Tailwind
colors: {
  custom: {
    50: '#8e70d1',
    500: '#5237bc',
    950: '#000000',
  },
}
SCSS
$custom: #5237bc;
$custom-light: #8e70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5237bc",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 252.18,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45404,
    "c": 0.19615,
    "h": 284.8
  },
  "luminance": 0.08157
}

Semantic roles & 50–950 ramp

primary
#5237BC
secondary
#BBC986
accent
#DE4AC0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5237BC

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

Preview Lab → · Contrast checker → · Palette generator →

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