#5239CA#5239CA

#5239CA is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.211 H 282.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5239CA
RGBrgb(82, 57, 202)
HSLhsl(250, 58%, 51%)
HSVhsv(250, 72%, 79%)
CMYKcmyk(59.4%, 71.8%, 0%, 20.8%)
CIE-LABlab(35.95, 49.83, -71.41)
CIE-LCHlch(35.95, 87.07, 304.91°)
OKLaboklab(46.96% 0.0457 -0.2058)
OKLCHoklch(46.96% 0.211 282.5)
XYZxyz(15.6002, 8.9833, 56.7776)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239CA #B1CA39
analogous
#3968CA #5239CA #9A39CA
triadic
#5239CA #CA5239 #39CA52
tetradic
#5239CA #CA3968 #B1CA39 #39CA9A
square
#5239CA #CA3968 #B1CA39 #39CA9A
split-complementary
#5239CA #CA9A39 #68CA39
monochromatic
#2A1D6C #3D2A9C #5239CA #7C69D7 #A69AE4

Accessibility & contrast

On white

7.51
#5239CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5239CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239CA
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239CA#FFFFFF#000000##FFFFFF
##5239CA1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5239ca;
/* rgb */ color: rgb(82, 57, 202);
/* oklch */ color: oklch(47.0% 0.211 282.5);
Tailwind
colors: {
  custom: {
    50: '#9072db',
    500: '#5239ca',
    950: '#000000',
  },
}
SCSS
$custom: #5239ca;
$custom-light: #9072db;
$custom-dark: #000000;
JSON
{
  "hex": "#5239ca",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 250.345,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4696,
    "c": 0.21078,
    "h": 282.5
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#5239CA
secondary
#C4D08F
accent
#E147C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239CA

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

Preview Lab → · Contrast checker → · Palette generator →

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