#5239C1#5239C1

#5239C1 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.200 H 283.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5239C1
RGBrgb(82, 57, 193)
HSLhsl(251, 54%, 49%)
HSVhsv(251, 70%, 76%)
CMYKcmyk(57.5%, 70.5%, 0%, 24.3%)
CIE-LABlab(35.14, 47.13, -67.48)
CIE-LCHlch(35.14, 82.31, 304.93°)
OKLaboklab(46.14% 0.0474 -0.1943)
OKLCHoklch(46.14% 0.2 283.7)
XYZxyz(14.5655, 8.5694, 51.3283)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C1 #A8C139
analogous
#3964C1 #5239C1 #9639C1
triadic
#5239C1 #C15239 #39C152
tetradic
#5239C1 #C13964 #A8C139 #39C196
square
#5239C1 #C13964 #A8C139 #39C196
split-complementary
#5239C1 #C19639 #64C139
monochromatic
#2A1D63 #3E2B92 #5239C1 #7966D2 #A395E0

Accessibility & contrast

On white

7.74
#5239C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5239C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239C1
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C1#FFFFFF#000000##FFFFFF
##5239C11.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C5
Deuteranopia (green-blind)
#004EBE
Tritanopia (blue-blind)
#155D79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5239c1;
/* rgb */ color: rgb(82, 57, 193);
/* oklch */ color: oklch(46.1% 0.200 283.7);
Tailwind
colors: {
  custom: {
    50: '#8e72d5',
    500: '#5239c1',
    950: '#000000',
  },
}
SCSS
$custom: #5239c1;
$custom-light: #8e72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c1",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 193
  },
  "hsl": {
    "h": 251.029,
    "s": 54.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.19999,
    "h": 283.7
  },
  "luminance": 0.0857
}

Semantic roles & 50–950 ramp

primary
#5239C1
secondary
#BFCB8B
accent
#DE4AC3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5239C1

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

Preview Lab → · Contrast checker → · Palette generator →

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