#5239B7#5239B7

#5239B7 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.188 H 285.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5239B7
RGBrgb(82, 57, 183)
HSLhsl(252, 53%, 47%)
HSVhsv(252, 69%, 72%)
CMYKcmyk(55.2%, 68.9%, 0%, 28.2%)
CIE-LABlab(34.27, 44.12, -63.02)
CIE-LCHlch(34.27, 76.93, 305.00°)
OKLaboklab(45.24% 0.0492 -0.1812)
OKLCHoklch(45.24% 0.188 285.2)
XYZxyz(13.4875, 8.1382, 45.6507)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239B7 #9EB739
analogous
#395FB7 #5239B7 #9139B7
triadic
#5239B7 #B75239 #39B752
tetradic
#5239B7 #B7395F #9EB739 #39B791
square
#5239B7 #B7395F #9EB739 #39B791
split-complementary
#5239B7 #B79139 #5FB739
monochromatic
#281C5A #3D2A88 #5239B7 #7660CD #9E8EDC

Accessibility & contrast

On white

7.99
#5239B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5239B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239B7
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239B7#FFFFFF#000000##FFFFFF
##5239B71.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#255A73
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5239b7;
/* rgb */ color: rgb(82, 57, 183);
/* oklch */ color: oklch(45.2% 0.188 285.2);
Tailwind
colors: {
  custom: {
    50: '#8d71ce',
    500: '#5239b7',
    950: '#000000',
  },
}
SCSS
$custom: #5239b7;
$custom-light: #8d71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5239b7",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 251.905,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45244,
    "c": 0.18776,
    "h": 285.2
  },
  "luminance": 0.08139
}

Semantic roles & 50–950 ramp

primary
#5239B7
secondary
#BAC785
accent
#DC4CBF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5239B7

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

Preview Lab → · Contrast checker → · Palette generator →

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