#5239AC#5239AC

#5239AC is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.3% C 0.174 H 287.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5239AC
RGBrgb(82, 57, 172)
HSLhsl(253, 50%, 45%)
HSVhsv(253, 67%, 67%)
CMYKcmyk(52.3%, 66.9%, 0%, 32.5%)
CIE-LABlab(33.35, 40.80, -57.99)
CIE-LCHlch(33.35, 70.90, 305.13°)
OKLaboklab(44.29% 0.0508 -0.1664)
OKLCHoklch(44.29% 0.174 287)
XYZxyz(12.3870, 7.6980, 39.8549)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239AC #93AC39
analogous
#395AAC #5239AC #8B39AC
triadic
#5239AC #AC5239 #39AC52
tetradic
#5239AC #AC395A #93AC39 #39AC8B
square
#5239AC #AC395A #93AC39 #39AC8B
split-complementary
#5239AC #AC8B39 #5AAC39
monochromatic
#261B50 #3C2A7E #5239AC #725AC8 #9988D8

Accessibility & contrast

On white

8.27
#5239AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5239AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239AC
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239AC#FFFFFF#000000##FFFFFF
##5239AC1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#30566D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5239ac;
/* rgb */ color: rgb(82, 57, 172);
/* oklch */ color: oklch(44.3% 0.174 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b71c6',
    500: '#5239ac',
    950: '#000000',
  },
}
SCSS
$custom: #5239ac;
$custom-light: #8b71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5239ac",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 172
  },
  "hsl": {
    "h": 253.043,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44294,
    "c": 0.17402,
    "h": 287
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#5239AC
secondary
#B3C27F
accent
#DA4EBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5239AC

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

Preview Lab → · Contrast checker → · Palette generator →

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