#8038CF#8038CF

#8038CF is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.9% C 0.218 H 300.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8038CF
RGBrgb(128, 56, 207)
HSLhsl(269, 61%, 52%)
HSVhsv(269, 73%, 81%)
CMYKcmyk(38.2%, 72.9%, 0%, 18.8%)
CIE-LABlab(41.09, 58.92, -65.70)
CIE-LCHlch(41.09, 88.25, 311.89°)
OKLaboklab(51.86% 0.1109 -0.1875)
OKLCHoklch(51.86% 0.218 300.6)
XYZxyz(21.5760, 11.9224, 60.1839)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038CF #87CF38
analogous
#383CCF #8038CF #CC38CF
triadic
#8038CF #CF8038 #38CF80
tetradic
#8038CF #CF383C #87CF38 #38CFCC
square
#8038CF #CF383C #87CF38 #38CFCC
split-complementary
#8038CF #CFCC38 #3CCF38
monochromatic
#441B71 #6227A3 #8038CF #9F69DB #BF9BE7

Accessibility & contrast

On white

6.20
#8038CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8038CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038CF
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038CF#FFFFFF#000000##FFFFFF
##8038CF1.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#6E5E81
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8038cf;
/* rgb */ color: rgb(128, 56, 207);
/* oklch */ color: oklch(51.9% 0.218 300.6);
Tailwind
colors: {
  custom: {
    50: '#ab75df',
    500: '#8038cf',
    950: '#000000',
  },
}
SCSS
$custom: #8038cf;
$custom-light: #ab75df;
$custom-dark: #000000;
JSON
{
  "hex": "#8038cf",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 268.609,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51858,
    "c": 0.21786,
    "h": 300.6
  },
  "luminance": 0.11923
}

Semantic roles & 50–950 ramp

primary
#8038CF
secondary
#B3D390
accent
#E44498
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8038CF

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

Preview Lab → · Contrast checker → · Palette generator →

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