#5239C2#5239C2

#5239C2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.2% C 0.201 H 283.6°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5239C2
RGBrgb(82, 57, 194)
HSLhsl(251, 55%, 49%)
HSVhsv(251, 71%, 76%)
CMYKcmyk(57.7%, 70.6%, 0%, 23.9%)
CIE-LABlab(35.23, 47.43, -67.92)
CIE-LCHlch(35.23, 82.84, 304.93°)
OKLaboklab(46.23% 0.0472 -0.1956)
OKLCHoklch(46.23% 0.201 283.6)
XYZxyz(14.6774, 8.6142, 51.9178)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C2 #A9C239
analogous
#3965C2 #5239C2 #9739C2
triadic
#5239C2 #C25239 #39C252
tetradic
#5239C2 #C23965 #A9C239 #39C297
square
#5239C2 #C23965 #A9C239 #39C297
split-complementary
#5239C2 #C29739 #65C239
monochromatic
#2A1D63 #3E2B93 #5239C2 #7A66D2 #A395E0

Accessibility & contrast

On white

7.71
#5239C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5239C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239C2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C2#FFFFFF#000000##FFFFFF
##5239C21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#135E79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5239c2;
/* rgb */ color: rgb(82, 57, 194);
/* oklch */ color: oklch(46.2% 0.201 283.6);
Tailwind
colors: {
  custom: {
    50: '#8e72d6',
    500: '#5239c2',
    950: '#000000',
  },
}
SCSS
$custom: #5239c2;
$custom-light: #8e72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c2",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 194
  },
  "hsl": {
    "h": 250.949,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46227,
    "c": 0.20119,
    "h": 283.6
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5239C2

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

Preview Lab → · Contrast checker → · Palette generator →

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