#9042D6#9042D6

#9042D6 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.217 H 304.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9042D6
RGBrgb(144, 66, 214)
HSLhsl(272, 64%, 55%)
HSVhsv(272, 69%, 84%)
CMYKcmyk(32.7%, 69.2%, 0%, 16.1%)
CIE-LABlab(45.19, 59.07, -62.97)
CIE-LCHlch(45.19, 86.34, 313.17°)
OKLaboklab(55.37% 0.1219 -0.179)
OKLCHoklch(55.37% 0.217 304.3)
XYZxyz(25.5847, 14.6809, 65.0911)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D6 #88D642
analogous
#4642D6 #9042D6 #D642D2
triadic
#9042D6 #D69042 #42D690
tetradic
#9042D6 #D64642 #88D642 #42D2D6
square
#9042D6 #D64642 #88D642 #42D2D6
split-complementary
#9042D6 #D2D642 #42D646
monochromatic
#521C82 #7127B4 #9042D6 #AE74E1 #CBA7EC

Accessibility & contrast

On white

5.34
#9042D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9042D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D6
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D6#FFFFFF#000000##FFFFFF
##9042D61.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#836487
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9042d6;
/* rgb */ color: rgb(144, 66, 214);
/* oklch */ color: oklch(55.4% 0.217 304.3);
Tailwind
colors: {
  custom: {
    50: '#b67ce3',
    500: '#9042d6',
    950: '#000000',
  },
}
SCSS
$custom: #9042d6;
$custom-light: #b67ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d6",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 271.622,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55366,
    "c": 0.21658,
    "h": 304.3
  },
  "luminance": 0.14681
}

Semantic roles & 50–950 ramp

primary
#9042D6
secondary
#B8D99B
accent
#E7408F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9042D6

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

Preview Lab → · Contrast checker → · Palette generator →

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