#5239C3#5239C3

#5239C3 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.3% C 0.202 H 283.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5239C3
RGBrgb(82, 57, 195)
HSLhsl(251, 55%, 49%)
HSVhsv(251, 71%, 76%)
CMYKcmyk(57.9%, 70.8%, 0%, 23.5%)
CIE-LABlab(35.32, 47.73, -68.36)
CIE-LCHlch(35.32, 83.37, 304.92°)
OKLaboklab(46.32% 0.0471 -0.1968)
OKLCHoklch(46.32% 0.202 283.4)
XYZxyz(14.7901, 8.6593, 52.5112)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239C3 #AAC339
analogous
#3965C3 #5239C3 #9739C3
triadic
#5239C3 #C35239 #39C352
tetradic
#5239C3 #C33965 #AAC339 #39C397
square
#5239C3 #C33965 #AAC339 #39C397
split-complementary
#5239C3 #C39739 #65C339
monochromatic
#2A1D64 #3E2B94 #5239C3 #7A67D2 #A496E0

Accessibility & contrast

On white

7.69
#5239C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5239C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239C3
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239C3#FFFFFF#000000##FFFFFF
##5239C31.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C7
Deuteranopia (green-blind)
#004EC0
Tritanopia (blue-blind)
#105E7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5239c3;
/* rgb */ color: rgb(82, 57, 195);
/* oklch */ color: oklch(46.3% 0.202 283.4);
Tailwind
colors: {
  custom: {
    50: '#8f72d6',
    500: '#5239c3',
    950: '#000000',
  },
}
SCSS
$custom: #5239c3;
$custom-light: #8f72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5239c3",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 195
  },
  "hsl": {
    "h": 250.87,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46317,
    "c": 0.20239,
    "h": 283.4
  },
  "luminance": 0.0866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5239C3

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

Preview Lab → · Contrast checker → · Palette generator →

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