#5239B5#5239B5

#5239B5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.185 H 285.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5239B5
RGBrgb(82, 57, 181)
HSLhsl(252, 52%, 47%)
HSVhsv(252, 69%, 71%)
CMYKcmyk(54.7%, 68.5%, 0%, 29%)
CIE-LABlab(34.10, 43.52, -62.11)
CIE-LCHlch(34.10, 75.84, 305.01°)
OKLaboklab(45.07% 0.0495 -0.1785)
OKLCHoklch(45.07% 0.185 285.5)
XYZxyz(13.2808, 8.0556, 44.5622)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239B5 #9CB539
analogous
#395EB5 #5239B5 #9039B5
triadic
#5239B5 #B55239 #39B552
tetradic
#5239B5 #B5395E #9CB539 #39B590
square
#5239B5 #B5395E #9CB539 #39B590
split-complementary
#5239B5 #B59039 #5EB539
monochromatic
#281C58 #3D2A86 #5239B5 #755FCD #9D8DDB

Accessibility & contrast

On white

8.04
#5239B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5239B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239B5
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239B5#FFFFFF#000000##FFFFFF
##5239B51.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#275972
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5239b5;
/* rgb */ color: rgb(82, 57, 181);
/* oklch */ color: oklch(45.1% 0.185 285.5);
Tailwind
colors: {
  custom: {
    50: '#8c71cc',
    500: '#5239b5',
    950: '#000000',
  },
}
SCSS
$custom: #5239b5;
$custom-light: #8c71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5239b5",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 252.097,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45069,
    "c": 0.18529,
    "h": 285.5
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#5239B5
secondary
#B9C684
accent
#DC4CBF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5239B5

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

Preview Lab → · Contrast checker → · Palette generator →

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