#5239AF#5239AF

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

Color values

HEX#5239AF
RGBrgb(82, 57, 175)
HSLhsl(253, 51%, 45%)
HSVhsv(253, 67%, 69%)
CMYKcmyk(53.1%, 67.4%, 0%, 31.4%)
CIE-LABlab(33.59, 41.71, -59.37)
CIE-LCHlch(33.59, 72.56, 305.09°)
OKLaboklab(44.55% 0.0504 -0.1705)
OKLCHoklch(44.55% 0.178 286.5)
XYZxyz(12.6784, 7.8146, 41.3894)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239AF #96AF39
analogous
#395BAF #5239AF #8D39AF
triadic
#5239AF #AF5239 #39AF52
tetradic
#5239AF #AF395B #96AF39 #39AF8D
square
#5239AF #AF395B #96AF39 #39AF8D
split-complementary
#5239AF #AF8D39 #5BAF39
monochromatic
#271B53 #3C2A81 #5239AF #735BCA #9A8AD9

Accessibility & contrast

On white

8.19
#5239AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5239AF#FFFFFF#000000##FFFFFF
##5239AF1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#2D576F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5239af;
/* rgb */ color: rgb(82, 57, 175);
/* oklch */ color: oklch(44.5% 0.178 286.5);
Tailwind
colors: {
  custom: {
    50: '#8b71c8',
    500: '#5239af',
    950: '#000000',
  },
}
SCSS
$custom: #5239af;
$custom-light: #8b71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5239af",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 252.712,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.1778,
    "h": 286.5
  },
  "luminance": 0.07815
}

Semantic roles & 50–950 ramp

primary
#5239AF
secondary
#B5C381
accent
#DA4DBC
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5239AF

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

Preview Lab → · Contrast checker → · Palette generator →

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