#5239AD#5239AD

#5239AD is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.4% C 0.175 H 286.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5239AD
RGBrgb(82, 57, 173)
HSLhsl(253, 50%, 45%)
HSVhsv(253, 67%, 68%)
CMYKcmyk(52.6%, 67.1%, 0%, 32.2%)
CIE-LABlab(33.43, 41.10, -58.45)
CIE-LCHlch(33.43, 71.46, 305.12°)
OKLaboklab(44.38% 0.0507 -0.1678)
OKLCHoklch(44.38% 0.175 286.8)
XYZxyz(12.4834, 7.7366, 40.3626)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239AD #94AD39
analogous
#395AAD #5239AD #8C39AD
triadic
#5239AD #AD5239 #39AD52
tetradic
#5239AD #AD395A #94AD39 #39AD8C
square
#5239AD #AD395A #94AD39 #39AD8C
split-complementary
#5239AD #AD8C39 #5AAD39
monochromatic
#261B51 #3C2A7F #5239AD #725AC9 #9A88D8

Accessibility & contrast

On white

8.24
#5239AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5239AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239AD
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239AD#FFFFFF#000000##FFFFFF
##5239AD1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#004BAB
Tritanopia (blue-blind)
#2F566E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5239ad;
/* rgb */ color: rgb(82, 57, 173);
/* oklch */ color: oklch(44.4% 0.175 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b71c6',
    500: '#5239ad',
    950: '#000000',
  },
}
SCSS
$custom: #5239ad;
$custom-light: #8b71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5239ad",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 173
  },
  "hsl": {
    "h": 252.931,
    "s": 50.435,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44379,
    "c": 0.17528,
    "h": 286.8
  },
  "luminance": 0.07737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5239AD

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

Preview Lab → · Contrast checker → · Palette generator →

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