#5239C0#5239C0

#5239C0 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.199 H 283.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5239C0
RGBrgb(82, 57, 192)
HSLhsl(251, 54%, 49%)
HSVhsv(251, 70%, 75%)
CMYKcmyk(57.3%, 70.3%, 0%, 24.7%)
CIE-LABlab(35.05, 46.83, -67.04)
CIE-LCHlch(35.05, 81.77, 304.94°)
OKLaboklab(46.05% 0.0476 -0.193)
OKLCHoklch(46.05% 0.199 283.9)
XYZxyz(14.4543, 8.5250, 50.7428)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C0 #A7C039
analogous
#3964C0 #5239C0 #9639C0
triadic
#5239C0 #C05239 #39C052
tetradic
#5239C0 #C03964 #A7C039 #39C096
square
#5239C0 #C03964 #A7C039 #39C096
split-complementary
#5239C0 #C09639 #64C039
monochromatic
#2A1D62 #3E2B91 #5239C0 #7965D1 #A294DF

Accessibility & contrast

On white

7.76
#5239C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5239C0
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C0#FFFFFF#000000##FFFFFF
##5239C01.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C4
Deuteranopia (green-blind)
#004EBD
Tritanopia (blue-blind)
#175D78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5239c0;
/* rgb */ color: rgb(82, 57, 192);
/* oklch */ color: oklch(46.0% 0.199 283.9);
Tailwind
colors: {
  custom: {
    50: '#8e72d4',
    500: '#5239c0',
    950: '#000000',
  },
}
SCSS
$custom: #5239c0;
$custom-light: #8e72d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c0",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 192
  },
  "hsl": {
    "h": 251.111,
    "s": 54.217,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46046,
    "c": 0.19877,
    "h": 283.9
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#5239C0
secondary
#BFCB8A
accent
#DE4AC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5239C0

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

Preview Lab → · Contrast checker → · Palette generator →

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