#9042D8#9042D8

#9042D8 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.219 H 303.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9042D8
RGBrgb(144, 66, 216)
HSLhsl(271, 66%, 55%)
HSVhsv(271, 69%, 85%)
CMYKcmyk(33.3%, 69.4%, 0%, 15.3%)
CIE-LABlab(45.34, 59.53, -63.89)
CIE-LCHlch(45.34, 87.33, 312.98°)
OKLaboklab(55.51% 0.1216 -0.1817)
OKLCHoklch(55.51% 0.219 303.8)
XYZxyz(25.8416, 14.7836, 66.4446)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D8 #8AD842
analogous
#4542D8 #9042D8 #D842D5
triadic
#9042D8 #D89042 #42D890
tetradic
#9042D8 #D84542 #8AD842 #42D5D8
square
#9042D8 #D84542 #8AD842 #42D5D8
split-complementary
#9042D8 #D5D842 #42D845
monochromatic
#521B84 #7126B7 #9042D8 #AE75E2 #CCA7ED

Accessibility & contrast

On white

5.31
#9042D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9042D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D8#FFFFFF#000000##FFFFFF
##9042D81.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#826588
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9042d8;
/* rgb */ color: rgb(144, 66, 216);
/* oklch */ color: oklch(55.5% 0.219 303.8);
Tailwind
colors: {
  custom: {
    50: '#b67ce5',
    500: '#9042d8',
    950: '#000000',
  },
}
SCSS
$custom: #9042d8;
$custom-light: #b67ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d8",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 271.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55513,
    "c": 0.21865,
    "h": 303.8
  },
  "luminance": 0.14784
}

Semantic roles & 50–950 ramp

primary
#9042D8
secondary
#BADA9C
accent
#E93F91
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9042D8

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

Preview Lab → · Contrast checker → · Palette generator →

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