#5239CD#5239CD

#5239CD is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.214 H 282.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5239CD
RGBrgb(82, 57, 205)
HSLhsl(250, 60%, 51%)
HSVhsv(250, 72%, 80%)
CMYKcmyk(60%, 72.2%, 0%, 19.6%)
CIE-LABlab(36.23, 50.72, -72.70)
CIE-LCHlch(36.23, 88.64, 304.90°)
OKLaboklab(47.24% 0.045 -0.2095)
OKLCHoklch(47.24% 0.214 282.1)
XYZxyz(15.9588, 9.1268, 58.6665)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239CD #B4CD39
analogous
#396ACD #5239CD #9C39CD
triadic
#5239CD #CD5239 #39CD52
tetradic
#5239CD #CD396A #B4CD39 #39CD9C
square
#5239CD #CD396A #B4CD39 #39CD9C
split-complementary
#5239CD #CD9C39 #6ACD39
monochromatic
#2A1C6F #3D28A0 #5239CD #7D6AD9 #A79BE6

Accessibility & contrast

On white

7.43
#5239CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5239CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239CD
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239CD#FFFFFF#000000##FFFFFF
##5239CD1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0050CA
Tritanopia (blue-blind)
#006280
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5239cd;
/* rgb */ color: rgb(82, 57, 205);
/* oklch */ color: oklch(47.2% 0.214 282.1);
Tailwind
colors: {
  custom: {
    50: '#9072dd',
    500: '#5239cd',
    950: '#000000',
  },
}
SCSS
$custom: #5239cd;
$custom-light: #9072dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5239cd",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 205
  },
  "hsl": {
    "h": 250.135,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47239,
    "c": 0.21434,
    "h": 282.1
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#5239CD
secondary
#C7D290
accent
#E345C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5239CD

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

Preview Lab → · Contrast checker → · Palette generator →

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