#5239BB#5239BB

#5239BB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.193 H 284.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5239BB
RGBrgb(82, 57, 187)
HSLhsl(252, 53%, 48%)
HSVhsv(252, 70%, 73%)
CMYKcmyk(56.1%, 69.5%, 0%, 26.7%)
CIE-LABlab(34.61, 45.32, -64.82)
CIE-LCHlch(34.61, 79.09, 304.96°)
OKLaboklab(45.6% 0.0485 -0.1865)
OKLCHoklch(45.6% 0.193 284.6)
XYZxyz(13.9097, 8.3071, 47.8746)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239BB #A2BB39
analogous
#3961BB #5239BB #9339BB
triadic
#5239BB #BB5239 #39BB52
tetradic
#5239BB #BB3961 #A2BB39 #39BB93
square
#5239BB #BB3961 #A2BB39 #39BB93
split-complementary
#5239BB #BB9339 #61BB39
monochromatic
#291C5D #3D2B8C #5239BB #7762CF #A091DD

Accessibility & contrast

On white

7.89
#5239BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5239BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239BB
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239BB#FFFFFF#000000##FFFFFF
##5239BB1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#1F5B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5239bb;
/* rgb */ color: rgb(82, 57, 187);
/* oklch */ color: oklch(45.6% 0.193 284.6);
Tailwind
colors: {
  custom: {
    50: '#8d72d1',
    500: '#5239bb',
    950: '#000000',
  },
}
SCSS
$custom: #5239bb;
$custom-light: #8d72d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5239bb",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 251.538,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45598,
    "c": 0.19268,
    "h": 284.6
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#5239BB
secondary
#BCC887
accent
#DD4BC1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5239BB

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

Preview Lab → · Contrast checker → · Palette generator →

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