#5037CB#5037CB

#5037CB is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.214 H 281.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5037CB
RGBrgb(80, 55, 203)
HSLhsl(250, 59%, 51%)
HSVhsv(250, 73%, 80%)
CMYKcmyk(60.6%, 72.9%, 0%, 20.4%)
CIE-LABlab(35.50, 50.92, -72.74)
CIE-LCHlch(35.50, 88.79, 304.99°)
OKLaboklab(46.62% 0.0441 -0.2097)
OKLCHoklch(46.62% 0.214 281.9)
XYZxyz(15.4506, 8.7486, 57.3628)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5037CB #B2CB37
analogous
#3768CB #5037CB #9A37CB
triadic
#5037CB #CB5037 #37CB50
tetradic
#5037CB #CB3768 #B2CB37 #37CB9A
square
#5037CB #CB3768 #B2CB37 #37CB9A
split-complementary
#5037CB #CB9A37 #68CB37
monochromatic
#291C6C #3C299C #5037CB #7A68D8 #A598E4

Accessibility & contrast

On white

7.64
#5037CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5037CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5037CB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5037CB#FFFFFF#000000##FFFFFF
##5037CB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CF
Deuteranopia (green-blind)
#004EC8
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5037cb;
/* rgb */ color: rgb(80, 55, 203);
/* oklch */ color: oklch(46.6% 0.214 281.9);
Tailwind
colors: {
  custom: {
    50: '#8f71dc',
    500: '#5037cb',
    950: '#000000',
  },
}
SCSS
$custom: #5037cb;
$custom-light: #8f71dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5037cb",
  "rgb": {
    "r": 80,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 250.135,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46622,
    "c": 0.21433,
    "h": 281.9
  },
  "luminance": 0.0875
}

Semantic roles & 50–950 ramp

primary
#5037CB
secondary
#C5D08E
accent
#E246C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5037CB

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

Preview Lab → · Contrast checker → · Palette generator →

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