#8042CF#8042CF

#8042CF is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.206 H 299.4°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8042CF
RGBrgb(128, 66, 207)
HSLhsl(266, 59%, 54%)
HSVhsv(266, 68%, 81%)
CMYKcmyk(38.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.75, 54.28, -63.01)
CIE-LCHlch(42.75, 83.16, 310.74°)
OKLaboklab(53.04% 0.1012 -0.1796)
OKLCHoklch(53.04% 0.206 299.4)
XYZxyz(22.1100, 12.9904, 60.3619)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042CF #91CF42
analogous
#424ACF #8042CF #C642CF
triadic
#8042CF #CF8042 #42CF80
tetradic
#8042CF #CF424A #91CF42 #42CFC6
square
#8042CF #CF424A #91CF42 #42CFC6
split-complementary
#8042CF #CFC642 #4ACF42
monochromatic
#461F78 #622BA9 #8042CF #A173DB #C2A4E8

Accessibility & contrast

On white

5.84
#8042CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8042CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042CF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042CF#FFFFFF#000000##FFFFFF
##8042CF1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#0064CC
Tritanopia (blue-blind)
#6E6383
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8042cf;
/* rgb */ color: rgb(128, 66, 207);
/* oklch */ color: oklch(53.0% 0.206 299.4);
Tailwind
colors: {
  custom: {
    50: '#ab7bdf',
    500: '#8042cf',
    950: '#000000',
  },
}
SCSS
$custom: #8042cf;
$custom-light: #ab7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8042cf",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 266.383,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53035,
    "c": 0.20619,
    "h": 299.4
  },
  "luminance": 0.12991
}

Semantic roles & 50–950 ramp

primary
#8042CF
secondary
#BAD598
accent
#E3459D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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