#5237BB#5237BB

#5237BB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.195 H 284.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5237BB
RGBrgb(82, 55, 187)
HSLhsl(252, 55%, 47%)
HSVhsv(252, 71%, 73%)
CMYKcmyk(56.1%, 70.6%, 0%, 26.7%)
CIE-LABlab(34.22, 46.42, -65.47)
CIE-LCHlch(34.22, 80.25, 305.34°)
OKLaboklab(45.31% 0.0502 -0.1884)
OKLCHoklch(45.31% 0.195 284.9)
XYZxyz(13.8128, 8.1133, 47.8422)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237BB #A0BB37
analogous
#375EBB #5237BB #9437BB
triadic
#5237BB #BB5237 #37BB52
tetradic
#5237BB #BB375E #A0BB37 #37BB94
square
#5237BB #BB375E #A0BB37 #37BB94
split-complementary
#5237BB #BB9437 #5EBB37
monochromatic
#291B5C #3D298C #5237BB #765FD0 #9F8EDE

Accessibility & contrast

On white

8.01
#5237BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5237BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237BB
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237BB#FFFFFF#000000##FFFFFF
##5237BB1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#205A75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5237bb;
/* rgb */ color: rgb(82, 55, 187);
/* oklch */ color: oklch(45.3% 0.195 284.9);
Tailwind
colors: {
  custom: {
    50: '#8d70d1',
    500: '#5237bb',
    950: '#000000',
  },
}
SCSS
$custom: #5237bb;
$custom-light: #8d70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5237bb",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 252.273,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45314,
    "c": 0.19494,
    "h": 284.9
  },
  "luminance": 0.08114
}

Semantic roles & 50–950 ramp

primary
#5237BB
secondary
#BBC985
accent
#DE4AC0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5237BB

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

Preview Lab → · Contrast checker → · Palette generator →

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