#5034CF#5034CF

#5034CF is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.222 H 281.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5034CF
RGBrgb(80, 52, 207)
HSLhsl(251, 62%, 51%)
HSVhsv(251, 75%, 81%)
CMYKcmyk(61.4%, 74.9%, 0%, 18.8%)
CIE-LABlab(35.33, 53.64, -75.34)
CIE-LCHlch(35.33, 92.48, 305.45°)
OKLaboklab(46.62% 0.0452 -0.2173)
OKLCHoklch(46.62% 0.222 281.8)
XYZxyz(15.7952, 8.6653, 59.8596)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5034CF #B3CF34
analogous
#3465CF #5034CF #9E34CF
triadic
#5034CF #CF5034 #34CF50
tetradic
#5034CF #CF3465 #B3CF34 #34CF9E
square
#5034CF #CF3465 #B3CF34 #34CF9E
split-complementary
#5034CF #CF9E34 #65CF34
monochromatic
#291A6E #3C26A0 #5034CF #7B65DB #A597E6

Accessibility & contrast

On white

7.68
#5034CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5034CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5034CF
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5034CF#FFFFFF#000000##FFFFFF
##5034CF1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#004DCC
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5034cf;
/* rgb */ color: rgb(80, 52, 207);
/* oklch */ color: oklch(46.6% 0.222 281.8);
Tailwind
colors: {
  custom: {
    50: '#906fdf',
    500: '#5034cf',
    950: '#000000',
  },
}
SCSS
$custom: #5034cf;
$custom-light: #906fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5034cf",
  "rgb": {
    "r": 80,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 250.839,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46621,
    "c": 0.22194,
    "h": 281.8
  },
  "luminance": 0.08666
}

Semantic roles & 50–950 ramp

primary
#5034CF
secondary
#C5D28D
accent
#E543C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5034CF

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

Preview Lab → · Contrast checker → · Palette generator →

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