#8038C5#8038C5

#8038C5 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.1% C 0.207 H 302.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8038C5
RGBrgb(128, 56, 197)
HSLhsl(271, 56%, 50%)
HSVhsv(271, 72%, 77%)
CMYKcmyk(35%, 71.6%, 0%, 22.7%)
CIE-LABlab(40.33, 56.54, -61.15)
CIE-LCHlch(40.33, 83.28, 312.76°)
OKLaboklab(51.08% 0.1129 -0.1741)
OKLCHoklch(51.08% 0.208 302.9)
XYZxyz(20.3919, 11.4487, 53.9480)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038C5 #7DC538
analogous
#3938C5 #8038C5 #C538C4
triadic
#8038C5 #C58038 #38C580
tetradic
#8038C5 #C53938 #7DC538 #38C4C5
square
#8038C5 #C53938 #7DC538 #38C4C5
split-complementary
#8038C5 #C4C538 #38C539
monochromatic
#421D66 #612A95 #8038C5 #9E67D4 #BC96E1

Accessibility & contrast

On white

6.38
#8038C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8038C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038C5
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038C5#FFFFFF#000000##FFFFFF
##8038C51.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#725A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8038c5;
/* rgb */ color: rgb(128, 56, 197);
/* oklch */ color: oklch(51.1% 0.207 302.9);
Tailwind
colors: {
  custom: {
    50: '#aa75d7',
    500: '#8038c5',
    950: '#000000',
  },
}
SCSS
$custom: #8038c5;
$custom-light: #aa75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8038c5",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 270.638,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51076,
    "c": 0.2075,
    "h": 302.9
  },
  "luminance": 0.11449
}

Semantic roles & 50–950 ramp

primary
#8038C5
secondary
#ACCD8C
accent
#DF4992
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8038C5

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

Preview Lab → · Contrast checker → · Palette generator →

#8038C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva