#5239BD#5239BD

#5239BD is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.195 H 284.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5239BD
RGBrgb(82, 57, 189)
HSLhsl(251, 54%, 48%)
HSVhsv(251, 70%, 74%)
CMYKcmyk(56.6%, 69.8%, 0%, 25.9%)
CIE-LABlab(34.79, 45.93, -65.71)
CIE-LCHlch(34.79, 80.17, 304.95°)
OKLaboklab(45.78% 0.0482 -0.1891)
OKLCHoklch(45.78% 0.195 284.3)
XYZxyz(14.1253, 8.3934, 49.0100)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239BD #A4BD39
analogous
#3962BD #5239BD #9439BD
triadic
#5239BD #BD5239 #39BD52
tetradic
#5239BD #BD3962 #A4BD39 #39BD94
square
#5239BD #BD3962 #A4BD39 #39BD94
split-complementary
#5239BD #BD9439 #62BD39
monochromatic
#291D5F #3E2B8E #5239BD #7863D0 #A192DE

Accessibility & contrast

On white

7.84
#5239BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5239BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5239BD#FFFFFF#000000##FFFFFF
##5239BD1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#1C5C77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5239bd;
/* rgb */ color: rgb(82, 57, 189);
/* oklch */ color: oklch(45.8% 0.195 284.3);
Tailwind
colors: {
  custom: {
    50: '#8e72d2',
    500: '#5239bd',
    950: '#000000',
  },
}
SCSS
$custom: #5239bd;
$custom-light: #8e72d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5239bd",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 251.364,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45776,
    "c": 0.19513,
    "h": 284.3
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5239BD

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

Preview Lab → · Contrast checker → · Palette generator →

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