#5034CA#5034CA

#5034CA is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.216 H 282.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5034CA
RGBrgb(80, 52, 202)
HSLhsl(251, 59%, 50%)
HSVhsv(251, 74%, 79%)
CMYKcmyk(60.4%, 74.3%, 0%, 20.8%)
CIE-LABlab(34.85, 52.17, -73.22)
CIE-LCHlch(34.85, 89.90, 305.47°)
OKLaboklab(46.14% 0.0464 -0.2111)
OKLCHoklch(46.14% 0.216 282.4)
XYZxyz(15.1936, 8.4247, 56.6911)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5034CA #AECA34
analogous
#3463CA #5034CA #9B34CA
triadic
#5034CA #CA5034 #34CA50
tetradic
#5034CA #CA3463 #AECA34 #34CA9B
square
#5034CA #CA3463 #AECA34 #34CA9B
split-complementary
#5034CA #CA9B34 #63CA34
monochromatic
#291B69 #3D2799 #5034CA #7A64D7 #A395E4

Accessibility & contrast

On white

7.82
#5034CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5034CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5034CA
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5034CA#FFFFFF#000000##FFFFFF
##5034CA1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5034ca;
/* rgb */ color: rgb(80, 52, 202);
/* oklch */ color: oklch(46.1% 0.216 282.4);
Tailwind
colors: {
  custom: {
    50: '#8f6fdb',
    500: '#5034ca',
    950: '#000000',
  },
}
SCSS
$custom: #5034ca;
$custom-light: #8f6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5034ca",
  "rgb": {
    "r": 80,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 251.2,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46139,
    "c": 0.21615,
    "h": 282.4
  },
  "luminance": 0.08426
}

Semantic roles & 50–950 ramp

primary
#5034CA
secondary
#C2CF8B
accent
#E246C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5034CA

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

Preview Lab → · Contrast checker → · Palette generator →

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