#5239BC#5239BC

#5239BC is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.194 H 284.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5239BC
RGBrgb(82, 57, 188)
HSLhsl(251, 53%, 48%)
HSVhsv(251, 70%, 74%)
CMYKcmyk(56.4%, 69.7%, 0%, 26.3%)
CIE-LABlab(34.70, 45.62, -65.26)
CIE-LCHlch(34.70, 79.63, 304.96°)
OKLaboklab(45.69% 0.0483 -0.1878)
OKLCHoklch(45.69% 0.194 284.4)
XYZxyz(14.0171, 8.3501, 48.4403)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239BC #A3BC39
analogous
#3962BC #5239BC #9339BC
triadic
#5239BC #BC5239 #39BC52
tetradic
#5239BC #BC3962 #A3BC39 #39BC93
square
#5239BC #BC3962 #A3BC39 #39BC93
split-complementary
#5239BC #BC9339 #62BC39
monochromatic
#291D5E #3E2B8D #5239BC #7763D0 #A092DE

Accessibility & contrast

On white

7.86
#5239BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5239BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5239BC#FFFFFF#000000##FFFFFF
##5239BC1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#1E5B76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5239bc;
/* rgb */ color: rgb(82, 57, 188);
/* oklch */ color: oklch(45.7% 0.194 284.4);
Tailwind
colors: {
  custom: {
    50: '#8d72d1',
    500: '#5239bc',
    950: '#000000',
  },
}
SCSS
$custom: #5239bc;
$custom-light: #8d72d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5239bc",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 188
  },
  "hsl": {
    "h": 251.45,
    "s": 53.469,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45687,
    "c": 0.1939,
    "h": 284.4
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

primary
#5239BC
secondary
#BCC988
accent
#DD4BC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5239BC

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

Preview Lab → · Contrast checker → · Palette generator →

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