#9042DC#9042DC

#9042DC is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.223 H 302.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9042DC
RGBrgb(144, 66, 220)
HSLhsl(270, 69%, 56%)
HSVhsv(270, 70%, 86%)
CMYKcmyk(34.5%, 70%, 0%, 13.7%)
CIE-LABlab(45.62, 60.46, -65.71)
CIE-LCHlch(45.62, 89.29, 312.62°)
OKLaboklab(55.81% 0.121 -0.187)
OKLCHoklch(55.81% 0.223 302.9)
XYZxyz(26.3651, 14.9930, 69.2012)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042DC #8EDC42
analogous
#4342DC #9042DC #DC42DB
triadic
#9042DC #DC9042 #42DC90
tetradic
#9042DC #DC4342 #8EDC42 #42DBDC
square
#9042DC #DC4342 #8EDC42 #42DBDC
split-complementary
#9042DC #DBDC42 #42DC43
monochromatic
#531A8A #7123BE #9042DC #AE76E6 #CDA9EF

Accessibility & contrast

On white

5.25
#9042DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9042DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042DC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042DC#FFFFFF#000000##FFFFFF
##9042DC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE1
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#81678B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9042dc;
/* rgb */ color: rgb(144, 66, 220);
/* oklch */ color: oklch(55.8% 0.223 302.9);
Tailwind
colors: {
  custom: {
    50: '#b67ce8',
    500: '#9042dc',
    950: '#000000',
  },
}
SCSS
$custom: #9042dc;
$custom-light: #b67ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#9042dc",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 270.39,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55808,
    "c": 0.22277,
    "h": 302.9
  },
  "luminance": 0.14993
}

Semantic roles & 50–950 ramp

primary
#9042DC
secondary
#BCDD9D
accent
#EC3C93
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9042DC

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

Preview Lab → · Contrast checker → · Palette generator →

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