#5239CE#5239CE

#5239CE is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.3% C 0.216 H 282.0°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5239CE
RGBrgb(82, 57, 206)
HSLhsl(250, 60%, 52%)
HSVhsv(250, 72%, 81%)
CMYKcmyk(60.2%, 72.3%, 0%, 19.2%)
CIE-LABlab(36.32, 51.02, -73.13)
CIE-LCHlch(36.32, 89.17, 304.90°)
OKLaboklab(47.33% 0.0448 -0.2108)
OKLCHoklch(47.33% 0.216 282)
XYZxyz(16.0799, 9.1752, 59.3042)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239CE #B5CE39
analogous
#396BCE #5239CE #9D39CE
triadic
#5239CE #CE5239 #39CE52
tetradic
#5239CE #CE396B #B5CE39 #39CE9D
square
#5239CE #CE396B #B5CE39 #39CE9D
split-complementary
#5239CE #CE9D39 #6BCE39
monochromatic
#2A1C71 #3C28A2 #5239CE #7D6ADA #A89BE6

Accessibility & contrast

On white

7.41
#5239CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5239CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239CE
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239CE#FFFFFF#000000##FFFFFF
##5239CE1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#0050CB
Tritanopia (blue-blind)
#006280
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5239ce;
/* rgb */ color: rgb(82, 57, 206);
/* oklch */ color: oklch(47.3% 0.216 282.0);
Tailwind
colors: {
  custom: {
    50: '#9072de',
    500: '#5239ce',
    950: '#000000',
  },
}
SCSS
$custom: #5239ce;
$custom-light: #9072de;
$custom-dark: #000000;
JSON
{
  "hex": "#5239ce",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 206
  },
  "hsl": {
    "h": 250.067,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47332,
    "c": 0.21553,
    "h": 282
  },
  "luminance": 0.09176
}

Semantic roles & 50–950 ramp

primary
#5239CE
secondary
#C7D291
accent
#E344C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239CE

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

Preview Lab → · Contrast checker → · Palette generator →

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