#5035CB#5035CB

#5035CB is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.4% C 0.216 H 282.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5035CB
RGBrgb(80, 53, 203)
HSLhsl(251, 59%, 50%)
HSVhsv(251, 74%, 80%)
CMYKcmyk(60.6%, 73.9%, 0%, 20.4%)
CIE-LABlab(35.13, 51.95, -73.35)
CIE-LCHlch(35.13, 89.88, 305.31°)
OKLaboklab(46.36% 0.0455 -0.2115)
OKLCHoklch(46.36% 0.216 282.1)
XYZxyz(15.3575, 8.5624, 57.3318)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5035CB #B0CB35
analogous
#3565CB #5035CB #9B35CB
triadic
#5035CB #CB5035 #35CB50
tetradic
#5035CB #CB3565 #B0CB35 #35CB9B
square
#5035CB #CB3565 #B0CB35 #35CB9B
split-complementary
#5035CB #CB9B35 #65CB35
monochromatic
#2A1B6A #3D289B #5035CB #7A66D8 #A496E4

Accessibility & contrast

On white

7.74
#5035CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5035CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5035CB
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5035CB#FFFFFF#000000##FFFFFF
##5035CB1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CF
Deuteranopia (green-blind)
#004DC8
Tritanopia (blue-blind)
#005F7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5035cb;
/* rgb */ color: rgb(80, 53, 203);
/* oklch */ color: oklch(46.4% 0.216 282.1);
Tailwind
colors: {
  custom: {
    50: '#8f70dc',
    500: '#5035cb',
    950: '#000000',
  },
}
SCSS
$custom: #5035cb;
$custom-light: #8f70dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5035cb",
  "rgb": {
    "r": 80,
    "g": 53,
    "b": 203
  },
  "hsl": {
    "h": 250.8,
    "s": 59.055,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46362,
    "c": 0.21634,
    "h": 282.1
  },
  "luminance": 0.08563
}

Semantic roles & 50–950 ramp

primary
#5035CB
secondary
#C3CF8C
accent
#E246C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5035CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5035CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva