#5239C4#5239C4

#5239C4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.4% C 0.204 H 283.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5239C4
RGBrgb(82, 57, 196)
HSLhsl(251, 55%, 50%)
HSVhsv(251, 71%, 77%)
CMYKcmyk(58.2%, 70.9%, 0%, 23.1%)
CIE-LABlab(35.41, 48.03, -68.80)
CIE-LCHlch(35.41, 83.90, 304.92°)
OKLaboklab(46.41% 0.0469 -0.1981)
OKLCHoklch(46.41% 0.204 283.3)
XYZxyz(14.9035, 8.7047, 53.1087)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C4 #ABC439
analogous
#3966C4 #5239C4 #9739C4
triadic
#5239C4 #C45239 #39C452
tetradic
#5239C4 #C43966 #ABC439 #39C497
square
#5239C4 #C43966 #ABC439 #39C497
split-complementary
#5239C4 #C49739 #66C439
monochromatic
#2A1D65 #3E2B95 #5239C4 #7B67D3 #A497E1

Accessibility & contrast

On white

7.66
#5239C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5239C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239C4
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C4#FFFFFF#000000##FFFFFF
##5239C41.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#004FC1
Tritanopia (blue-blind)
#0D5E7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5239c4;
/* rgb */ color: rgb(82, 57, 196);
/* oklch */ color: oklch(46.4% 0.204 283.3);
Tailwind
colors: {
  custom: {
    50: '#8f72d7',
    500: '#5239c4',
    950: '#000000',
  },
}
SCSS
$custom: #5239c4;
$custom-light: #8f72d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c4",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 196
  },
  "hsl": {
    "h": 250.791,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46409,
    "c": 0.20361,
    "h": 283.3
  },
  "luminance": 0.08706
}

Semantic roles & 50–950 ramp

primary
#5239C4
secondary
#C1CC8D
accent
#DE4AC4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239C4

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

Preview Lab → · Contrast checker → · Palette generator →

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