#8038C9#8038C9

#8038C9 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.4% C 0.212 H 302.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8038C9
RGBrgb(128, 56, 201)
HSLhsl(270, 57%, 50%)
HSVhsv(270, 72%, 79%)
CMYKcmyk(36.3%, 72.1%, 0%, 21.2%)
CIE-LABlab(40.63, 57.49, -62.98)
CIE-LCHlch(40.63, 85.27, 312.39°)
OKLaboklab(51.39% 0.1121 -0.1795)
OKLCHoklch(51.39% 0.212 302)
XYZxyz(20.8563, 11.6345, 56.3939)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038C9 #81C938
analogous
#3838C9 #8038C9 #C838C9
triadic
#8038C9 #C98038 #38C980
tetradic
#8038C9 #C93838 #81C938 #38C9C8
square
#8038C9 #C93838 #81C938 #38C9C8
split-complementary
#8038C9 #C9C838 #38C938
monochromatic
#431D6A #622A9A #8038C9 #9F68D6 #BD98E3

Accessibility & contrast

On white

6.31
#8038C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8038C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038C9
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038C9#FFFFFF#000000##FFFFFF
##8038C91.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#705C7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8038c9;
/* rgb */ color: rgb(128, 56, 201);
/* oklch */ color: oklch(51.4% 0.212 302.0);
Tailwind
colors: {
  custom: {
    50: '#ab75da',
    500: '#8038c9',
    950: '#000000',
  },
}
SCSS
$custom: #8038c9;
$custom-light: #ab75da;
$custom-dark: #000000;
JSON
{
  "hex": "#8038c9",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 269.793,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51386,
    "c": 0.21165,
    "h": 302
  },
  "luminance": 0.11635
}

Semantic roles & 50–950 ramp

primary
#8038C9
secondary
#AFCF8E
accent
#E14794
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8038C9

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

Preview Lab → · Contrast checker → · Palette generator →

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