#5032CD#5032CD

#5032CD is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.222 H 282.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5032CD
RGBrgb(80, 50, 205)
HSLhsl(252, 61%, 50%)
HSVhsv(252, 76%, 80%)
CMYKcmyk(61%, 75.6%, 0%, 19.6%)
CIE-LABlab(34.79, 54.05, -75.07)
CIE-LCHlch(34.79, 92.50, 305.75°)
OKLaboklab(46.18% 0.047 -0.2165)
OKLCHoklch(46.18% 0.222 282.2)
XYZxyz(15.4649, 8.3934, 58.5509)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5032CD #AFCD32
analogous
#3261CD #5032CD #9E32CD
triadic
#5032CD #CD5032 #32CD50
tetradic
#5032CD #CD3261 #AFCD32 #32CD9E
square
#5032CD #CD3261 #AFCD32 #32CD9E
split-complementary
#5032CD #CD9E32 #61CD32
monochromatic
#2A1A6B #3D269C #5032CD #7A63D9 #A494E5

Accessibility & contrast

On white

7.84
#5032CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5032CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5032CD
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5032CD#FFFFFF#000000##FFFFFF
##5032CD1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D1
Deuteranopia (green-blind)
#004CCA
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5032cd;
/* rgb */ color: rgb(80, 50, 205);
/* oklch */ color: oklch(46.2% 0.222 282.2);
Tailwind
colors: {
  custom: {
    50: '#906ede',
    500: '#5032cd',
    950: '#000000',
  },
}
SCSS
$custom: #5032cd;
$custom-light: #906ede;
$custom-dark: #000000;
JSON
{
  "hex": "#5032cd",
  "rgb": {
    "r": 80,
    "g": 50,
    "b": 205
  },
  "hsl": {
    "h": 251.613,
    "s": 60.784,
    "l": 50
  },
  "oklch": {
    "l": 0.46182,
    "c": 0.22154,
    "h": 282.2
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#5032CD
secondary
#C3D08B
accent
#E444C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5032CD

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

Preview Lab → · Contrast checker → · Palette generator →

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