#5239A3#5239A3

#5239A3 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.5% C 0.163 H 288.6°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5239A3
RGBrgb(82, 57, 163)
HSLhsl(254, 48%, 43%)
HSVhsv(254, 65%, 64%)
CMYKcmyk(49.7%, 65%, 0%, 36.1%)
CIE-LABlab(32.62, 38.10, -53.77)
CIE-LCHlch(32.62, 65.89, 305.32°)
OKLaboklab(43.54% 0.0519 -0.154)
OKLCHoklch(43.54% 0.163 288.6)
XYZxyz(11.5518, 7.3639, 35.4559)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239A3 #8AA339
analogous
#3955A3 #5239A3 #8739A3
triadic
#5239A3 #A35239 #39A352
tetradic
#5239A3 #A33955 #8AA339 #39A387
square
#5239A3 #A33955 #8AA339 #39A387
split-complementary
#5239A3 #A38739 #55A339
monochromatic
#241948 #3B2976 #5239A3 #6F55C4 #9683D4

Accessibility & contrast

On white

8.49
#5239A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5239A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239A3
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239A3#FFFFFF#000000##FFFFFF
##5239A31.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#365369
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5239a3;
/* rgb */ color: rgb(82, 57, 163);
/* oklch */ color: oklch(43.5% 0.163 288.6);
Tailwind
colors: {
  custom: {
    50: '#8a71bf',
    500: '#5239a3',
    950: '#000000',
  },
}
SCSS
$custom: #5239a3;
$custom-light: #8a71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5239a3",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 163
  },
  "hsl": {
    "h": 254.151,
    "s": 48.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43544,
    "c": 0.16254,
    "h": 288.6
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

primary
#5239A3
secondary
#AEBD7A
accent
#D850B8
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #5239A3

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

Preview Lab → · Contrast checker → · Palette generator →

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