#5239C8#5239C8

#5239C8 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.8% C 0.208 H 282.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5239C8
RGBrgb(82, 57, 200)
HSLhsl(250, 57%, 50%)
HSVhsv(250, 72%, 78%)
CMYKcmyk(59%, 71.5%, 0%, 21.6%)
CIE-LABlab(35.77, 49.23, -70.54)
CIE-LCHlch(35.77, 86.02, 304.91°)
OKLaboklab(46.78% 0.0461 -0.2032)
OKLCHoklch(46.78% 0.208 282.8)
XYZxyz(15.3649, 8.8892, 55.5385)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C8 #AFC839
analogous
#3967C8 #5239C8 #9A39C8
triadic
#5239C8 #C85239 #39C852
tetradic
#5239C8 #C83967 #AFC839 #39C89A
square
#5239C8 #C83967 #AFC839 #39C89A
split-complementary
#5239C8 #C89A39 #67C839
monochromatic
#2B1D69 #3E2B99 #5239C8 #7C69D5 #A699E3

Accessibility & contrast

On white

7.56
#5239C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5239C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239C8
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C8#FFFFFF#000000##FFFFFF
##5239C81.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#00607D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5239c8;
/* rgb */ color: rgb(82, 57, 200);
/* oklch */ color: oklch(46.8% 0.208 282.8);
Tailwind
colors: {
  custom: {
    50: '#8f72da',
    500: '#5239c8',
    950: '#000000',
  },
}
SCSS
$custom: #5239c8;
$custom-light: #8f72da;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c8",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 250.49,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46775,
    "c": 0.2084,
    "h": 282.8
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#5239C8
secondary
#C3CE8F
accent
#E048C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239C8

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

Preview Lab → · Contrast checker → · Palette generator →

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