#9042CE#9042CE

#9042CE is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.208 H 306.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9042CE
RGBrgb(144, 66, 206)
HSLhsl(273, 59%, 53%)
HSVhsv(273, 68%, 81%)
CMYKcmyk(30.1%, 68%, 0%, 19.2%)
CIE-LABlab(44.63, 57.23, -59.28)
CIE-LCHlch(44.63, 82.40, 313.99°)
OKLaboklab(54.79% 0.123 -0.1682)
OKLCHoklch(54.79% 0.208 306.2)
XYZxyz(24.5880, 14.2822, 59.8420)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042CE #80CE42
analogous
#4A42CE #9042CE #CE42C6
triadic
#9042CE #CE9042 #42CE90
tetradic
#9042CE #CE4A42 #80CE42 #42C6CE
square
#9042CE #CE4A42 #80CE42 #42C6CE
split-complementary
#9042CE #C6CE42 #42CE4A
monochromatic
#501F77 #702BA7 #9042CE #AD73DB #C9A3E7

Accessibility & contrast

On white

5.45
#9042CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9042CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042CE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042CE#FFFFFF#000000##FFFFFF
##9042CE1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#176ACB
Tritanopia (blue-blind)
#856183
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9042ce;
/* rgb */ color: rgb(144, 66, 206);
/* oklch */ color: oklch(54.8% 0.208 306.2);
Tailwind
colors: {
  custom: {
    50: '#b57cde',
    500: '#9042ce',
    950: '#000000',
  },
}
SCSS
$custom: #9042ce;
$custom-light: #b57cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9042ce",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 273.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5479,
    "c": 0.20831,
    "h": 306.2
  },
  "luminance": 0.14282
}

Semantic roles & 50–950 ramp

primary
#9042CE
secondary
#B2D498
accent
#E2468B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042CE

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

Preview Lab → · Contrast checker → · Palette generator →

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