#9042D1#9042D1

#9042D1 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.211 H 305.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9042D1
RGBrgb(144, 66, 209)
HSLhsl(273, 61%, 54%)
HSVhsv(273, 68%, 82%)
CMYKcmyk(31.1%, 68.4%, 0%, 18%)
CIE-LABlab(44.84, 57.92, -60.67)
CIE-LCHlch(44.84, 83.88, 313.67°)
OKLaboklab(55% 0.1226 -0.1722)
OKLCHoklch(55% 0.211 305.4)
XYZxyz(24.9559, 14.4293, 61.7797)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D1 #83D142
analogous
#4942D1 #9042D1 #D142CB
triadic
#9042D1 #D19042 #42D190
tetradic
#9042D1 #D14942 #83D142 #42CBD1
square
#9042D1 #D14942 #83D142 #42CBD1
split-complementary
#9042D1 #CBD142 #42D149
monochromatic
#511E7B #712AAC #9042D1 #AD73DD #CAA4E9

Accessibility & contrast

On white

5.40
#9042D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9042D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D1
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D1#FFFFFF#000000##FFFFFF
##9042D11.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D5
Deuteranopia (green-blind)
#0D6ACE
Tritanopia (blue-blind)
#846285
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9042d1;
/* rgb */ color: rgb(144, 66, 209);
/* oklch */ color: oklch(55.0% 0.211 305.4);
Tailwind
colors: {
  custom: {
    50: '#b57ce0',
    500: '#9042d1',
    950: '#000000',
  },
}
SCSS
$custom: #9042d1;
$custom-light: #b57ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d1",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 272.727,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55004,
    "c": 0.21141,
    "h": 305.4
  },
  "luminance": 0.14429
}

Semantic roles & 50–950 ramp

primary
#9042D1
secondary
#B5D699
accent
#E4448D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042D1

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

Preview Lab → · Contrast checker → · Palette generator →

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