#5237BF#5237BF

#5237BF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.200 H 284.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5237BF
RGBrgb(82, 55, 191)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(57.1%, 71.2%, 0%, 25.1%)
CIE-LABlab(34.57, 47.61, -67.24)
CIE-LCHlch(34.57, 82.39, 305.30°)
OKLaboklab(45.68% 0.0494 -0.1936)
OKLCHoklch(45.68% 0.2 284.3)
XYZxyz(14.2470, 8.2869, 50.1289)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237BF #A4BF37
analogous
#3760BF #5237BF #9637BF
triadic
#5237BF #BF5237 #37BF52
tetradic
#5237BF #BF3760 #A4BF37 #37BF96
square
#5237BF #BF3760 #A4BF37 #37BF96
split-complementary
#5237BF #BF9637 #60BF37
monochromatic
#291C60 #3E298F #5237BF #7862D2 #A191DF

Accessibility & contrast

On white

7.90
#5237BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5237BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237BF
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237BF#FFFFFF#000000##FFFFFF
##5237BF1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#195C77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5237bf;
/* rgb */ color: rgb(82, 55, 191);
/* oklch */ color: oklch(45.7% 0.200 284.3);
Tailwind
colors: {
  custom: {
    50: '#8e70d3',
    500: '#5237bf',
    950: '#000000',
  },
}
SCSS
$custom: #5237bf;
$custom-light: #8e70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5237bf",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 251.912,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45677,
    "c": 0.19977,
    "h": 284.3
  },
  "luminance": 0.08288
}

Semantic roles & 50–950 ramp

primary
#5237BF
secondary
#BDCA88
accent
#DF49C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5237BF

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

Preview Lab → · Contrast checker → · Palette generator →

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