#8038CC#8038CC

#8038CC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.6% C 0.215 H 301.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8038CC
RGBrgb(128, 56, 204)
HSLhsl(269, 59%, 51%)
HSVhsv(269, 73%, 80%)
CMYKcmyk(37.3%, 72.5%, 0%, 20%)
CIE-LABlab(40.86, 58.20, -64.34)
CIE-LCHlch(40.86, 86.76, 312.13°)
OKLaboklab(51.62% 0.1115 -0.1835)
OKLCHoklch(51.62% 0.215 301.3)
XYZxyz(21.2127, 11.7770, 58.2707)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038CC #84CC38
analogous
#383ACC #8038CC #CA38CC
triadic
#8038CC #CC8038 #38CC80
tetradic
#8038CC #CC383A #84CC38 #38CCCA
square
#8038CC #CC383A #84CC38 #38CCCA
split-complementary
#8038CC #CCCA38 #3ACC38
monochromatic
#441C6E #62299E #8038CC #9F69D8 #BE99E5

Accessibility & contrast

On white

6.26
#8038CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8038CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038CC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038CC#FFFFFF#000000##FFFFFF
##8038CC1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#6F5D7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8038cc;
/* rgb */ color: rgb(128, 56, 204);
/* oklch */ color: oklch(51.6% 0.215 301.3);
Tailwind
colors: {
  custom: {
    50: '#ab75dd',
    500: '#8038cc',
    950: '#000000',
  },
}
SCSS
$custom: #8038cc;
$custom-light: #ab75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8038cc",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 269.189,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51621,
    "c": 0.21476,
    "h": 301.3
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#8038CC
secondary
#B1D18F
accent
#E24596
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8038CC

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

Preview Lab → · Contrast checker → · Palette generator →

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