#9042D3#9042D3

#9042D3 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.213 H 305.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9042D3
RGBrgb(144, 66, 211)
HSLhsl(272, 62%, 54%)
HSVhsv(272, 69%, 83%)
CMYKcmyk(31.8%, 68.7%, 0%, 17.3%)
CIE-LABlab(44.98, 58.38, -61.60)
CIE-LCHlch(44.98, 84.87, 313.46°)
OKLaboklab(55.15% 0.1223 -0.175)
OKLCHoklch(55.15% 0.213 305)
XYZxyz(25.2051, 14.5290, 63.0919)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D3 #85D342
analogous
#4842D3 #9042D3 #D342CE
triadic
#9042D3 #D39042 #42D390
tetradic
#9042D3 #D34842 #85D342 #42CED3
square
#9042D3 #D34842 #85D342 #42CED3
split-complementary
#9042D3 #CED342 #42D348
monochromatic
#511D7D #7129AF #9042D3 #AD74DF #CAA5EA

Accessibility & contrast

On white

5.38
#9042D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9042D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D3#FFFFFF#000000##FFFFFF
##9042D31.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#036BD0
Tritanopia (blue-blind)
#846386
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9042d3;
/* rgb */ color: rgb(144, 66, 211);
/* oklch */ color: oklch(55.1% 0.213 305.0);
Tailwind
colors: {
  custom: {
    50: '#b67ce1',
    500: '#9042d3',
    950: '#000000',
  },
}
SCSS
$custom: #9042d3;
$custom-light: #b67ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d3",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 272.276,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55148,
    "c": 0.21349,
    "h": 305
  },
  "luminance": 0.14529
}

Semantic roles & 50–950 ramp

primary
#9042D3
secondary
#B6D79A
accent
#E5428E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042D3

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

Preview Lab → · Contrast checker → · Palette generator →

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