#9042C8#9042C8

#9042C8 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.202 H 307.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9042C8
RGBrgb(144, 66, 200)
HSLhsl(275, 55%, 52%)
HSVhsv(275, 67%, 78%)
CMYKcmyk(28%, 67%, 0%, 21.6%)
CIE-LABlab(44.23, 55.87, -56.47)
CIE-LCHlch(44.23, 79.44, 314.69°)
OKLaboklab(54.37% 0.1236 -0.1599)
OKLCHoklch(54.37% 0.202 307.7)
XYZxyz(23.8730, 13.9962, 56.0763)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042C8 #7AC842
analogous
#4D42C8 #9042C8 #C842BD
triadic
#9042C8 #C89042 #42C890
tetradic
#9042C8 #C84D42 #7AC842 #42BDC8
square
#9042C8 #C84D42 #7AC842 #42BDC8
split-complementary
#9042C8 #BDC842 #42C84D
monochromatic
#4E206F #702E9F #9042C8 #AC71D6 #C8A1E4

Accessibility & contrast

On white

5.53
#9042C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9042C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042C8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042C8#FFFFFF#000000##FFFFFF
##9042C81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#875F80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9042c8;
/* rgb */ color: rgb(144, 66, 200);
/* oklch */ color: oklch(54.4% 0.202 307.7);
Tailwind
colors: {
  custom: {
    50: '#b57cd9',
    500: '#9042c8',
    950: '#000000',
  },
}
SCSS
$custom: #9042c8;
$custom-light: #b57cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9042c8",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 274.925,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54369,
    "c": 0.20211,
    "h": 307.7
  },
  "luminance": 0.13996
}

Semantic roles & 50–950 ramp

primary
#9042C8
secondary
#AED096
accent
#DE4A88
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042C8

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

Preview Lab → · Contrast checker → · Palette generator →

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