#9042CC#9042CC

#9042CC is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.6% C 0.206 H 306.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9042CC
RGBrgb(144, 66, 204)
HSLhsl(274, 58%, 53%)
HSVhsv(274, 68%, 80%)
CMYKcmyk(29.4%, 67.6%, 0%, 20%)
CIE-LABlab(44.50, 56.78, -58.35)
CIE-LCHlch(44.50, 81.41, 314.22°)
OKLaboklab(54.65% 0.1232 -0.1654)
OKLCHoklch(54.65% 0.206 306.7)
XYZxyz(24.3466, 14.1856, 58.5705)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042CC #7ECC42
analogous
#4B42CC #9042CC #CC42C3
triadic
#9042CC #CC9042 #42CC90
tetradic
#9042CC #CC4B42 #7ECC42 #42C3CC
square
#9042CC #CC4B42 #7ECC42 #42C3CC
split-complementary
#9042CC #C3CC42 #42CC4B
monochromatic
#4F1F74 #702CA4 #9042CC #AC72D9 #C9A2E6

Accessibility & contrast

On white

5.47
#9042CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9042CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042CC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042CC#FFFFFF#000000##FFFFFF
##9042CC1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#1C6AC9
Tritanopia (blue-blind)
#866082
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9042cc;
/* rgb */ color: rgb(144, 66, 204);
/* oklch */ color: oklch(54.6% 0.206 306.7);
Tailwind
colors: {
  custom: {
    50: '#b57cdc',
    500: '#9042cc',
    950: '#000000',
  },
}
SCSS
$custom: #9042cc;
$custom-light: #b57cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9042cc",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 273.913,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54649,
    "c": 0.20625,
    "h": 306.7
  },
  "luminance": 0.14185
}

Semantic roles & 50–950 ramp

primary
#9042CC
secondary
#B1D397
accent
#E1478A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042CC

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

Preview Lab → · Contrast checker → · Palette generator →

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