#5239B9#5239B9

#5239B9 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.190 H 284.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5239B9
RGBrgb(82, 57, 185)
HSLhsl(252, 53%, 47%)
HSVhsv(252, 69%, 73%)
CMYKcmyk(55.7%, 69.2%, 0%, 27.5%)
CIE-LABlab(34.44, 44.72, -63.92)
CIE-LCHlch(34.44, 78.01, 304.98°)
OKLaboklab(45.42% 0.0489 -0.1838)
OKLCHoklch(45.42% 0.19 284.9)
XYZxyz(13.6971, 8.2221, 46.7548)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239B9 #A0B939
analogous
#3960B9 #5239B9 #9239B9
triadic
#5239B9 #B95239 #39B952
tetradic
#5239B9 #B93960 #A0B939 #39B992
square
#5239B9 #B93960 #A0B939 #39B992
split-complementary
#5239B9 #B99239 #60B939
monochromatic
#291C5B #3D2B8A #5239B9 #7661CE #9F90DD

Accessibility & contrast

On white

7.94
#5239B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5239B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239B9
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239B9#FFFFFF#000000##FFFFFF
##5239B91.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#225A74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5239b9;
/* rgb */ color: rgb(82, 57, 185);
/* oklch */ color: oklch(45.4% 0.190 284.9);
Tailwind
colors: {
  custom: {
    50: '#8d71cf',
    500: '#5239b9',
    950: '#000000',
  },
}
SCSS
$custom: #5239b9;
$custom-light: #8d71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5239b9",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 251.719,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.19022,
    "h": 284.9
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#5239B9
secondary
#BBC886
accent
#DC4BC0
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5239B9

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

Preview Lab → · Contrast checker → · Palette generator →

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