#5239AA#5239AA

#5239AA is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.1% C 0.171 H 287.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5239AA
RGBrgb(82, 57, 170)
HSLhsl(253, 50%, 45%)
HSVhsv(253, 66%, 67%)
CMYKcmyk(51.8%, 66.5%, 0%, 33.3%)
CIE-LABlab(33.18, 40.20, -57.06)
CIE-LCHlch(33.18, 69.80, 305.17°)
OKLaboklab(44.13% 0.0511 -0.1637)
OKLCHoklch(44.13% 0.171 287.3)
XYZxyz(12.1964, 7.6218, 38.8509)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239AA #91AA39
analogous
#3959AA #5239AA #8B39AA
triadic
#5239AA #AA5239 #39AA52
tetradic
#5239AA #AA3959 #91AA39 #39AA8B
square
#5239AA #AA3959 #91AA39 #39AA8B
split-complementary
#5239AA #AA8B39 #59AA39
monochromatic
#261A4E #3C2A7C #5239AA #7159C7 #9887D7

Accessibility & contrast

On white

8.32
#5239AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5239AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5239AA#FFFFFF#000000##FFFFFF
##5239AA1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#31556C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5239aa;
/* rgb */ color: rgb(82, 57, 170);
/* oklch */ color: oklch(44.1% 0.171 287.3);
Tailwind
colors: {
  custom: {
    50: '#8b71c4',
    500: '#5239aa',
    950: '#000000',
  },
}
SCSS
$custom: #5239aa;
$custom-light: #8b71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5239aa",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 253.274,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44125,
    "c": 0.17149,
    "h": 287.3
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#5239AA
secondary
#B2C17E
accent
#D94EBB
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5239AA

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

Preview Lab → · Contrast checker → · Palette generator →

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