#5239B3#5239B3

#5239B3 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.9% C 0.183 H 285.8°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5239B3
RGBrgb(82, 57, 179)
HSLhsl(252, 52%, 46%)
HSVhsv(252, 68%, 70%)
CMYKcmyk(54.2%, 68.2%, 0%, 29.8%)
CIE-LABlab(33.93, 42.91, -61.20)
CIE-LCHlch(33.93, 74.75, 305.04°)
OKLaboklab(44.89% 0.0498 -0.1759)
OKLCHoklch(44.89% 0.183 285.8)
XYZxyz(13.0770, 7.9741, 43.4892)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239B3 #9AB339
analogous
#395DB3 #5239B3 #8F39B3
triadic
#5239B3 #B35239 #39B352
tetradic
#5239B3 #B3395D #9AB339 #39B38F
square
#5239B3 #B3395D #9AB339 #39B38F
split-complementary
#5239B3 #B38F39 #5DB339
monochromatic
#271B56 #3D2A85 #5239B3 #745ECC #9C8CDA

Accessibility & contrast

On white

8.09
#5239B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5239B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239B3
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239B3#FFFFFF#000000##FFFFFF
##5239B31.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#295871
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5239b3;
/* rgb */ color: rgb(82, 57, 179);
/* oklch */ color: oklch(44.9% 0.183 285.8);
Tailwind
colors: {
  custom: {
    50: '#8c71cb',
    500: '#5239b3',
    950: '#000000',
  },
}
SCSS
$custom: #5239b3;
$custom-light: #8c71cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5239b3",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 252.295,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44894,
    "c": 0.1828,
    "h": 285.8
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#5239B3
secondary
#B7C583
accent
#DB4DBE
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5239B3

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

Preview Lab → · Contrast checker → · Palette generator →

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