#9042D4#9042D4

#9042D4 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.2% C 0.215 H 304.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9042D4
RGBrgb(144, 66, 212)
HSLhsl(272, 63%, 55%)
HSVhsv(272, 69%, 83%)
CMYKcmyk(32.1%, 68.9%, 0%, 16.9%)
CIE-LABlab(45.05, 58.61, -62.06)
CIE-LCHlch(45.05, 85.36, 313.36°)
OKLaboklab(55.22% 0.1222 -0.1763)
OKLCHoklch(55.22% 0.215 304.7)
XYZxyz(25.3308, 14.5793, 63.7542)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D4 #86D442
analogous
#4742D4 #9042D4 #D442CF
triadic
#9042D4 #D49042 #42D490
tetradic
#9042D4 #D44742 #86D442 #42CFD4
square
#9042D4 #D44742 #86D442 #42CFD4
split-complementary
#9042D4 #CFD442 #42D447
monochromatic
#511D7F #7128B1 #9042D4 #AD74DF #CBA6EB

Accessibility & contrast

On white

5.36
#9042D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9042D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D4
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D4#FFFFFF#000000##FFFFFF
##9042D41.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#006BD1
Tritanopia (blue-blind)
#836386
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9042d4;
/* rgb */ color: rgb(144, 66, 212);
/* oklch */ color: oklch(55.2% 0.215 304.7);
Tailwind
colors: {
  custom: {
    50: '#b67ce2',
    500: '#9042d4',
    950: '#000000',
  },
}
SCSS
$custom: #9042d4;
$custom-light: #b67ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d4",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 272.055,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55221,
    "c": 0.21452,
    "h": 304.7
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#9042D4
secondary
#B7D89A
accent
#E6428E
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #9042D4

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

Preview Lab → · Contrast checker → · Palette generator →

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