#5239C7#5239C7

#5239C7 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.207 H 282.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5239C7
RGBrgb(82, 57, 199)
HSLhsl(251, 56%, 50%)
HSVhsv(251, 71%, 78%)
CMYKcmyk(58.8%, 71.4%, 0%, 22%)
CIE-LABlab(35.68, 48.93, -70.11)
CIE-LCHlch(35.68, 85.49, 304.91°)
OKLaboklab(46.68% 0.0463 -0.202)
OKLCHoklch(46.68% 0.207 282.9)
XYZxyz(15.2484, 8.8426, 54.9250)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C7 #AEC739
analogous
#3967C7 #5239C7 #9939C7
triadic
#5239C7 #C75239 #39C752
tetradic
#5239C7 #C73967 #AEC739 #39C799
square
#5239C7 #C73967 #AEC739 #39C799
split-complementary
#5239C7 #C79939 #67C739
monochromatic
#2B1D68 #3E2B98 #5239C7 #7C69D4 #A598E2

Accessibility & contrast

On white

7.58
#5239C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5239C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239C7
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C7#FFFFFF#000000##FFFFFF
##5239C71.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CB
Deuteranopia (green-blind)
#004FC4
Tritanopia (blue-blind)
#02607C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5239c7;
/* rgb */ color: rgb(82, 57, 199);
/* oklch */ color: oklch(46.7% 0.207 282.9);
Tailwind
colors: {
  custom: {
    50: '#8f72d9',
    500: '#5239c7',
    950: '#000000',
  },
}
SCSS
$custom: #5239c7;
$custom-light: #8f72d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c7",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 199
  },
  "hsl": {
    "h": 250.563,
    "s": 55.906,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46683,
    "c": 0.2072,
    "h": 282.9
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#5239C7
secondary
#C2CE8E
accent
#DF49C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239C7

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

Preview Lab → · Contrast checker → · Palette generator →

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