#8042C9#8042C9

#8042C9 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.200 H 300.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8042C9
RGBrgb(128, 66, 201)
HSLhsl(268, 56%, 52%)
HSVhsv(268, 67%, 79%)
CMYKcmyk(36.3%, 67.2%, 0%, 21.2%)
CIE-LABlab(42.31, 52.79, -60.25)
CIE-LCHlch(42.31, 80.10, 311.23°)
OKLaboklab(52.58% 0.102 -0.1715)
OKLCHoklch(52.58% 0.2 300.7)
XYZxyz(21.3904, 12.7025, 56.5719)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042C9 #8BC942
analogous
#4247C9 #8042C9 #C442C9
triadic
#8042C9 #C98042 #42C980
tetradic
#8042C9 #C94247 #8BC942 #42C9C4
square
#8042C9 #C94247 #8BC942 #42C9C4
split-complementary
#8042C9 #C9C442 #47C942
monochromatic
#452070 #622EA0 #8042C9 #A072D7 #C0A1E4

Accessibility & contrast

On white

5.93
#8042C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8042C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042C9
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042C9#FFFFFF#000000##FFFFFF
##8042C91.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#706180
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8042c9;
/* rgb */ color: rgb(128, 66, 201);
/* oklch */ color: oklch(52.6% 0.200 300.7);
Tailwind
colors: {
  custom: {
    50: '#aa7bda',
    500: '#8042c9',
    950: '#000000',
  },
}
SCSS
$custom: #8042c9;
$custom-light: #aa7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#8042c9",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 267.556,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52584,
    "c": 0.19958,
    "h": 300.7
  },
  "luminance": 0.12703
}

Semantic roles & 50–950 ramp

primary
#8042C9
secondary
#B6D196
accent
#DF499A
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042C9

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

Preview Lab → · Contrast checker → · Palette generator →

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