#8042CB#8042CB

#8042CB is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.7% C 0.202 H 300.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8042CB
RGBrgb(128, 66, 203)
HSLhsl(267, 57%, 53%)
HSVhsv(267, 67%, 80%)
CMYKcmyk(36.9%, 67.5%, 0%, 20.4%)
CIE-LABlab(42.46, 53.28, -61.17)
CIE-LCHlch(42.46, 81.12, 311.06°)
OKLaboklab(52.73% 0.1017 -0.1743)
OKLCHoklch(52.73% 0.202 300.3)
XYZxyz(21.6271, 12.7972, 57.8190)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042CB #8DCB42
analogous
#4249CB #8042CB #C442CB
triadic
#8042CB #CB8042 #42CB80
tetradic
#8042CB #CB4249 #8DCB42 #42CBC4
square
#8042CB #CB4249 #8DCB42 #42CBC4
split-complementary
#8042CB #CBC442 #49CB42
monochromatic
#452073 #622DA3 #8042CB #A072D8 #C1A2E5

Accessibility & contrast

On white

5.90
#8042CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8042CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042CB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042CB#FFFFFF#000000##FFFFFF
##8042CB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#6F6281
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8042cb;
/* rgb */ color: rgb(128, 66, 203);
/* oklch */ color: oklch(52.7% 0.202 300.3);
Tailwind
colors: {
  custom: {
    50: '#aa7bdc',
    500: '#8042cb',
    950: '#000000',
  },
}
SCSS
$custom: #8042cb;
$custom-light: #aa7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8042cb",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 267.153,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52733,
    "c": 0.20179,
    "h": 300.3
  },
  "luminance": 0.12797
}

Semantic roles & 50–950 ramp

primary
#8042CB
secondary
#B7D297
accent
#E0489B
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042CB

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

Preview Lab → · Contrast checker → · Palette generator →

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