#5237BD#5237BD

#5237BD is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.197 H 284.6°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5237BD
RGBrgb(82, 55, 189)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 74%)
CMYKcmyk(56.6%, 70.9%, 0%, 25.9%)
CIE-LABlab(34.40, 47.02, -66.35)
CIE-LCHlch(34.40, 81.32, 305.32°)
OKLaboklab(45.5% 0.0498 -0.191)
OKLCHoklch(45.5% 0.197 284.6)
XYZxyz(14.0284, 8.1995, 48.9777)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5237BD #A2BD37
analogous
#375FBD #5237BD #9537BD
triadic
#5237BD #BD5237 #37BD52
tetradic
#5237BD #BD375F #A2BD37 #37BD95
square
#5237BD #BD375F #A2BD37 #37BD95
split-complementary
#5237BD #BD9537 #5FBD37
monochromatic
#291B5E #3D298E #5237BD #7760D1 #A090DF

Accessibility & contrast

On white

7.95
#5237BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5237BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5237BD
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5237BD#FFFFFF#000000##FFFFFF
##5237BD1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#1D5B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5237bd;
/* rgb */ color: rgb(82, 55, 189);
/* oklch */ color: oklch(45.5% 0.197 284.6);
Tailwind
colors: {
  custom: {
    50: '#8e70d2',
    500: '#5237bd',
    950: '#000000',
  },
}
SCSS
$custom: #5237bd;
$custom-light: #8e70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5237bd",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 189
  },
  "hsl": {
    "h": 252.09,
    "s": 54.918,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45495,
    "c": 0.19736,
    "h": 284.6
  },
  "luminance": 0.082
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5237BD

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

Preview Lab → · Contrast checker → · Palette generator →

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