#5239CC#5239CC

#5239CC is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.1% C 0.213 H 282.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5239CC
RGBrgb(82, 57, 204)
HSLhsl(250, 59%, 51%)
HSVhsv(250, 72%, 80%)
CMYKcmyk(59.8%, 72.1%, 0%, 20%)
CIE-LABlab(36.14, 50.42, -72.27)
CIE-LCHlch(36.14, 88.12, 304.90°)
OKLaboklab(47.15% 0.0453 -0.2083)
OKLCHoklch(47.15% 0.213 282.3)
XYZxyz(15.8385, 9.0786, 58.0328)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239CC #B3CC39
analogous
#3969CC #5239CC #9B39CC
triadic
#5239CC #CC5239 #39CC52
tetradic
#5239CC #CC3969 #B3CC39 #39CC9B
square
#5239CC #CC3969 #B3CC39 #39CC9B
split-complementary
#5239CC #CC9B39 #69CC39
monochromatic
#2A1C6E #3D299F #5239CC #7D6AD9 #A79AE5

Accessibility & contrast

On white

7.46
#5239CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5239CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239CC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239CC#FFFFFF#000000##FFFFFF
##5239CC1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5239cc;
/* rgb */ color: rgb(82, 57, 204);
/* oklch */ color: oklch(47.1% 0.213 282.3);
Tailwind
colors: {
  custom: {
    50: '#9072dd',
    500: '#5239cc',
    950: '#000000',
  },
}
SCSS
$custom: #5239cc;
$custom-light: #9072dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5239cc",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 250.204,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47146,
    "c": 0.21316,
    "h": 282.3
  },
  "luminance": 0.0908
}

Semantic roles & 50–950 ramp

primary
#5239CC
secondary
#C6D190
accent
#E246C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239CC

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

Preview Lab → · Contrast checker → · Palette generator →

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