#5239B2#5239B2

#5239B2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.182 H 286.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5239B2
RGBrgb(82, 57, 178)
HSLhsl(252, 51%, 46%)
HSVhsv(252, 68%, 70%)
CMYKcmyk(53.9%, 68%, 0%, 30.2%)
CIE-LABlab(33.84, 42.61, -60.75)
CIE-LCHlch(33.84, 74.20, 305.05°)
OKLaboklab(44.81% 0.05 -0.1745)
OKLCHoklch(44.81% 0.182 286)
XYZxyz(12.9763, 7.9338, 42.9585)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239B2 #99B239
analogous
#395CB2 #5239B2 #8E39B2
triadic
#5239B2 #B25239 #39B252
tetradic
#5239B2 #B2395C #99B239 #39B28E
square
#5239B2 #B2395C #99B239 #39B28E
split-complementary
#5239B2 #B28E39 #5CB239
monochromatic
#271B55 #3D2A84 #5239B2 #745DCB #9C8BDA

Accessibility & contrast

On white

8.12
#5239B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5239B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239B2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239B2#FFFFFF#000000##FFFFFF
##5239B21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#2A5871
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5239b2;
/* rgb */ color: rgb(82, 57, 178);
/* oklch */ color: oklch(44.8% 0.182 286.0);
Tailwind
colors: {
  custom: {
    50: '#8c71ca',
    500: '#5239b2',
    950: '#000000',
  },
}
SCSS
$custom: #5239b2;
$custom-light: #8c71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5239b2",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 252.397,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44808,
    "c": 0.18155,
    "h": 286
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#5239B2
secondary
#B7C482
accent
#DB4DBE
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5239B2

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

Preview Lab → · Contrast checker → · Palette generator →

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