#9042AC#9042AC

#9042AC is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.5% C 0.173 H 316.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9042AC
RGBrgb(144, 66, 172)
HSLhsl(284, 45%, 47%)
HSVhsv(284, 62%, 67%)
CMYKcmyk(16.3%, 61.6%, 0%, 32.5%)
CIE-LABlab(42.47, 49.75, -42.90)
CIE-LCHlch(42.47, 65.69, 319.23°)
OKLaboklab(52.54% 0.1249 -0.1201)
OKLCHoklch(52.54% 0.173 316.1)
XYZxyz(20.8951, 12.8050, 40.3927)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042AC #5EAC42
analogous
#5B42AC #9042AC #AC4293
triadic
#9042AC #AC9042 #42AC90
tetradic
#9042AC #AC5B42 #5EAC42 #4293AC
square
#9042AC #AC5B42 #5EAC42 #4293AC
split-complementary
#9042AC #93AC42 #42AC5B
monochromatic
#462054 #6B3180 #9042AC #AC67C5 #C493D6

Accessibility & contrast

On white

5.90
#9042AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9042AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042AC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042AC#FFFFFF#000000##FFFFFF
##9042AC1.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)
#2160AF
Deuteranopia (green-blind)
#4267A9
Tritanopia (blue-blind)
#8E5471
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9042ac;
/* rgb */ color: rgb(144, 66, 172);
/* oklch */ color: oklch(52.5% 0.173 316.1);
Tailwind
colors: {
  custom: {
    50: '#b37bc5',
    500: '#9042ac',
    950: '#000000',
  },
}
SCSS
$custom: #9042ac;
$custom-light: #b37bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9042ac",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 284.151,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52536,
    "c": 0.17328,
    "h": 316.1
  },
  "luminance": 0.12804
}

Semantic roles & 50–950 ramp

primary
#9042AC
secondary
#98C189
accent
#D45476
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #9042AC

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

Preview Lab → · Contrast checker → · Palette generator →

#9042AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva