#5239BF#5239BF

#5239BF is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.198 H 284.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5239BF
RGBrgb(82, 57, 191)
HSLhsl(251, 54%, 49%)
HSVhsv(251, 70%, 75%)
CMYKcmyk(57.1%, 70.2%, 0%, 25.1%)
CIE-LABlab(34.96, 46.53, -66.60)
CIE-LCHlch(34.96, 81.24, 304.94°)
OKLaboklab(45.96% 0.0478 -0.1917)
OKLCHoklch(45.96% 0.198 284)
XYZxyz(14.3439, 8.4808, 50.1612)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239BF #A6BF39
analogous
#3963BF #5239BF #9539BF
triadic
#5239BF #BF5239 #39BF52
tetradic
#5239BF #BF3963 #A6BF39 #39BF95
square
#5239BF #BF3963 #A6BF39 #39BF95
split-complementary
#5239BF #BF9539 #63BF39
monochromatic
#2A1D61 #3E2B90 #5239BF #7964D1 #A293DF

Accessibility & contrast

On white

7.79
#5239BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5239BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5239BF#FFFFFF#000000##FFFFFF
##5239BF1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#195D78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5239bf;
/* rgb */ color: rgb(82, 57, 191);
/* oklch */ color: oklch(46.0% 0.198 284.0);
Tailwind
colors: {
  custom: {
    50: '#8e72d3',
    500: '#5239bf',
    950: '#000000',
  },
}
SCSS
$custom: #5239bf;
$custom-light: #8e72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5239bf",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 251.194,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45956,
    "c": 0.19756,
    "h": 284
  },
  "luminance": 0.08482
}

Semantic roles & 50–950 ramp

primary
#5239BF
secondary
#BECA8A
accent
#DD4AC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5239BF

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

Preview Lab → · Contrast checker → · Palette generator →

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