#5239AE#5239AE

#5239AE is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.5% C 0.177 H 286.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5239AE
RGBrgb(82, 57, 174)
HSLhsl(253, 51%, 45%)
HSVhsv(253, 67%, 68%)
CMYKcmyk(52.9%, 67.2%, 0%, 31.8%)
CIE-LABlab(33.51, 41.41, -58.91)
CIE-LCHlch(33.51, 72.01, 305.10°)
OKLaboklab(44.46% 0.0506 -0.1691)
OKLCHoklch(44.46% 0.177 286.6)
XYZxyz(12.5805, 7.7754, 40.8741)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239AE #95AE39
analogous
#395AAE #5239AE #8D39AE
triadic
#5239AE #AE5239 #39AE52
tetradic
#5239AE #AE395A #95AE39 #39AE8D
square
#5239AE #AE395A #95AE39 #39AE8D
split-complementary
#5239AE #AE8D39 #5AAE39
monochromatic
#271B52 #3C2A80 #5239AE #735BC9 #9A89D8

Accessibility & contrast

On white

8.22
#5239AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5239AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239AE
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239AE#FFFFFF#000000##FFFFFF
##5239AE1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#2E566E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5239ae;
/* rgb */ color: rgb(82, 57, 174);
/* oklch */ color: oklch(44.5% 0.177 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b71c7',
    500: '#5239ae',
    950: '#000000',
  },
}
SCSS
$custom: #5239ae;
$custom-light: #8b71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5239ae",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 174
  },
  "hsl": {
    "h": 252.821,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44464,
    "c": 0.17654,
    "h": 286.6
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#5239AE
secondary
#B4C380
accent
#DA4EBC
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5239AE

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

Preview Lab → · Contrast checker → · Palette generator →

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