#5031CA#5031CA

#5031CA is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.219 H 282.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5031CA
RGBrgb(80, 49, 202)
HSLhsl(252, 61%, 49%)
HSVhsv(252, 76%, 79%)
CMYKcmyk(60.4%, 75.7%, 0%, 20.8%)
CIE-LABlab(34.32, 53.67, -74.09)
CIE-LCHlch(34.32, 91.48, 305.92°)
OKLaboklab(45.77% 0.0484 -0.2136)
OKLCHoklch(45.77% 0.219 282.8)
XYZxyz(15.0639, 8.1653, 56.6479)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5031CA #ABCA31
analogous
#315FCA #5031CA #9D31CA
triadic
#5031CA #CA5031 #31CA50
tetradic
#5031CA #CA315F #ABCA31 #31CA9D
square
#5031CA #CA315F #ABCA31 #31CA9D
split-complementary
#5031CA #CA9D31 #5FCA31
monochromatic
#291967 #3C2599 #5031CA #7860D8 #A291E4

Accessibility & contrast

On white

7.98
#5031CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5031CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5031CA
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5031CA#FFFFFF#000000##FFFFFF
##5031CA1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CE
Deuteranopia (green-blind)
#004BC7
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5031ca;
/* rgb */ color: rgb(80, 49, 202);
/* oklch */ color: oklch(45.8% 0.219 282.8);
Tailwind
colors: {
  custom: {
    50: '#8f6ddb',
    500: '#5031ca',
    950: '#000000',
  },
}
SCSS
$custom: #5031ca;
$custom-light: #8f6ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5031ca",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 252.157,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45768,
    "c": 0.21903,
    "h": 282.8
  },
  "luminance": 0.08166
}

Semantic roles & 50–950 ramp

primary
#5031CA
secondary
#C1CF88
accent
#E444C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5031CA

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

Preview Lab → · Contrast checker → · Palette generator →

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