#5239BA#5239BA

#5239BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.191 H 284.7°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5239BA
RGBrgb(82, 57, 186)
HSLhsl(252, 53%, 48%)
HSVhsv(252, 69%, 73%)
CMYKcmyk(55.9%, 69.4%, 0%, 27.1%)
CIE-LABlab(34.53, 45.02, -64.37)
CIE-LCHlch(34.53, 78.55, 304.97°)
OKLaboklab(45.51% 0.0487 -0.1852)
OKLCHoklch(45.51% 0.191 284.7)
XYZxyz(13.8030, 8.2645, 47.3127)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239BA #A1BA39
analogous
#3960BA #5239BA #9239BA
triadic
#5239BA #BA5239 #39BA52
tetradic
#5239BA #BA3960 #A1BA39 #39BA92
square
#5239BA #BA3960 #A1BA39 #39BA92
split-complementary
#5239BA #BA9239 #60BA39
monochromatic
#291C5C #3D2B8B #5239BA #7761CF #9F90DD

Accessibility & contrast

On white

7.92
#5239BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5239BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5239BA#FFFFFF#000000##FFFFFF
##5239BA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#215B75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5239ba;
/* rgb */ color: rgb(82, 57, 186);
/* oklch */ color: oklch(45.5% 0.191 284.7);
Tailwind
colors: {
  custom: {
    50: '#8d71d0',
    500: '#5239ba',
    950: '#000000',
  },
}
SCSS
$custom: #5239ba;
$custom-light: #8d71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5239ba",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 251.628,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45509,
    "c": 0.19145,
    "h": 284.7
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#5239BA
secondary
#BBC887
accent
#DC4BC0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5239BA

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

Preview Lab → · Contrast checker → · Palette generator →

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