#5038C8#5038C8

#5038C8 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.210 H 282.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5038C8
RGBrgb(80, 56, 200)
HSLhsl(250, 57%, 50%)
HSVhsv(250, 72%, 78%)
CMYKcmyk(60%, 72%, 0%, 21.6%)
CIE-LABlab(35.41, 49.49, -71.15)
CIE-LCHlch(35.41, 86.67, 304.82°)
OKLaboklab(46.47% 0.044 -0.2051)
OKLCHoklch(46.47% 0.21 282.1)
XYZxyz(15.1445, 8.7029, 55.5142)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5038C8 #B0C838
analogous
#3868C8 #5038C8 #9838C8
triadic
#5038C8 #C85038 #38C850
tetradic
#5038C8 #C83868 #B0C838 #38C898
square
#5038C8 #C83868 #B0C838 #38C898
split-complementary
#5038C8 #C89838 #68C838
monochromatic
#2A1D69 #3D2A99 #5038C8 #7A68D5 #A498E3

Accessibility & contrast

On white

7.66
#5038C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5038C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5038C8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5038C8#FFFFFF#000000##FFFFFF
##5038C81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5038c8;
/* rgb */ color: rgb(80, 56, 200);
/* oklch */ color: oklch(46.5% 0.210 282.1);
Tailwind
colors: {
  custom: {
    50: '#8f71da',
    500: '#5038c8',
    950: '#000000',
  },
}
SCSS
$custom: #5038c8;
$custom-light: #8f71da;
$custom-dark: #000000;
JSON
{
  "hex": "#5038c8",
  "rgb": {
    "r": 80,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 250,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46474,
    "c": 0.20975,
    "h": 282.1
  },
  "luminance": 0.08704
}

Semantic roles & 50–950 ramp

primary
#5038C8
secondary
#C3CE8E
accent
#E048C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5038C8

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

Preview Lab → · Contrast checker → · Palette generator →

#5038C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva