#9042D5#9042D5

#9042D5 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.3% C 0.216 H 304.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9042D5
RGBrgb(144, 66, 213)
HSLhsl(272, 64%, 55%)
HSVhsv(272, 69%, 84%)
CMYKcmyk(32.4%, 69%, 0%, 16.5%)
CIE-LABlab(45.12, 58.84, -62.52)
CIE-LCHlch(45.12, 85.85, 313.26°)
OKLaboklab(55.29% 0.122 -0.1777)
OKLCHoklch(55.29% 0.216 304.5)
XYZxyz(25.4573, 14.6299, 64.4206)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D5 #87D542
analogous
#4742D5 #9042D5 #D542D0
triadic
#9042D5 #D59042 #42D590
tetradic
#9042D5 #D54742 #87D542 #42D0D5
square
#9042D5 #D54742 #87D542 #42D0D5
split-complementary
#9042D5 #D0D542 #42D547
monochromatic
#511C80 #7128B2 #9042D5 #AD74E0 #CBA6EB

Accessibility & contrast

On white

5.35
#9042D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9042D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D5
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D5#FFFFFF#000000##FFFFFF
##9042D51.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9042d5;
/* rgb */ color: rgb(144, 66, 213);
/* oklch */ color: oklch(55.3% 0.216 304.5);
Tailwind
colors: {
  custom: {
    50: '#b67ce3',
    500: '#9042d5',
    950: '#000000',
  },
}
SCSS
$custom: #9042d5;
$custom-light: #b67ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d5",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 271.837,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55293,
    "c": 0.21555,
    "h": 304.5
  },
  "luminance": 0.1463
}

Semantic roles & 50–950 ramp

primary
#9042D5
secondary
#B8D89A
accent
#E7418F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9042D5

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

Preview Lab → · Contrast checker → · Palette generator →

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