#5239C5#5239C5

#5239C5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.5% C 0.205 H 283.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5239C5
RGBrgb(82, 57, 197)
HSLhsl(251, 55%, 50%)
HSVhsv(251, 71%, 77%)
CMYKcmyk(58.4%, 71.1%, 0%, 22.7%)
CIE-LABlab(35.50, 48.33, -69.23)
CIE-LCHlch(35.50, 84.43, 304.92°)
OKLaboklab(46.5% 0.0467 -0.1994)
OKLCHoklch(46.5% 0.205 283.2)
XYZxyz(15.0177, 8.7503, 53.7101)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C5 #ACC539
analogous
#3966C5 #5239C5 #9839C5
triadic
#5239C5 #C55239 #39C552
tetradic
#5239C5 #C53966 #ACC539 #39C598
square
#5239C5 #C53966 #ACC539 #39C598
split-complementary
#5239C5 #C59839 #66C539
monochromatic
#2A1E66 #3E2B96 #5239C5 #7B68D3 #A597E1

Accessibility & contrast

On white

7.64
#5239C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5239C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239C5
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C5#FFFFFF#000000##FFFFFF
##5239C51.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#0A5F7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5239c5;
/* rgb */ color: rgb(82, 57, 197);
/* oklch */ color: oklch(46.5% 0.205 283.2);
Tailwind
colors: {
  custom: {
    50: '#8f72d8',
    500: '#5239c5',
    950: '#000000',
  },
}
SCSS
$custom: #5239c5;
$custom-light: #8f72d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c5",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 250.714,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.465,
    "c": 0.20481,
    "h": 283.2
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#5239C5
secondary
#C1CD8D
accent
#DE49C4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239C5

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

Preview Lab → · Contrast checker → · Palette generator →

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