#8042CA#8042CA

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

Color values

HEX#8042CA
RGBrgb(128, 66, 202)
HSLhsl(267, 56%, 53%)
HSVhsv(267, 67%, 79%)
CMYKcmyk(36.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(42.38, 53.04, -60.71)
CIE-LCHlch(42.38, 80.61, 311.14°)
OKLaboklab(52.66% 0.1019 -0.1729)
OKLCHoklch(52.66% 0.201 300.5)
XYZxyz(21.5084, 12.7497, 57.1935)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042CA #8CCA42
analogous
#4248CA #8042CA #C442CA
triadic
#8042CA #CA8042 #42CA80
tetradic
#8042CA #CA4248 #8CCA42 #42CAC4
square
#8042CA #CA4248 #8CCA42 #42CAC4
split-complementary
#8042CA #CAC442 #48CA42
monochromatic
#452072 #622DA2 #8042CA #A072D7 #C0A2E5

Accessibility & contrast

On white

5.92
#8042CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8042CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042CA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042CA#FFFFFF#000000##FFFFFF
##8042CA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#706281
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8042ca;
/* rgb */ color: rgb(128, 66, 202);
/* oklch */ color: oklch(52.7% 0.201 300.5);
Tailwind
colors: {
  custom: {
    50: '#aa7bdb',
    500: '#8042ca',
    950: '#000000',
  },
}
SCSS
$custom: #8042ca;
$custom-light: #aa7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8042ca",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 267.353,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52659,
    "c": 0.20068,
    "h": 300.5
  },
  "luminance": 0.1275
}

Semantic roles & 50–950 ramp

primary
#8042CA
secondary
#B7D196
accent
#DF489B
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042CA

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

Preview Lab → · Contrast checker → · Palette generator →

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