#9042C7#9042C7

#9042C7 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.201 H 308.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9042C7
RGBrgb(144, 66, 199)
HSLhsl(275, 54%, 52%)
HSVhsv(275, 67%, 78%)
CMYKcmyk(27.6%, 66.8%, 0%, 22%)
CIE-LABlab(44.16, 55.64, -56.00)
CIE-LCHlch(44.16, 78.95, 314.82°)
OKLaboklab(54.3% 0.1237 -0.1585)
OKLCHoklch(54.3% 0.201 308)
XYZxyz(23.7565, 13.9496, 55.4628)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042C7 #79C742
analogous
#4E42C7 #9042C7 #C742BC
triadic
#9042C7 #C79042 #42C790
tetradic
#9042C7 #C74E42 #79C742 #42BCC7
square
#9042C7 #C74E42 #79C742 #42BCC7
split-complementary
#9042C7 #BCC742 #42C74E
monochromatic
#4E216E #6F2F9D #9042C7 #AC71D5 #C7A0E3

Accessibility & contrast

On white

5.54
#9042C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9042C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042C7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042C7#FFFFFF#000000##FFFFFF
##9042C71.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#2669C4
Tritanopia (blue-blind)
#875E7F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9042c7;
/* rgb */ color: rgb(144, 66, 199);
/* oklch */ color: oklch(54.3% 0.201 308.0);
Tailwind
colors: {
  custom: {
    50: '#b57cd9',
    500: '#9042c7',
    950: '#000000',
  },
}
SCSS
$custom: #9042c7;
$custom-light: #b57cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9042c7",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 275.188,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.543,
    "c": 0.20108,
    "h": 308
  },
  "luminance": 0.13949
}

Semantic roles & 50–950 ramp

primary
#9042C7
secondary
#ADD095
accent
#DE4A87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042C7

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

Preview Lab → · Contrast checker → · Palette generator →

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