#9042D0#9042D0

#9042D0 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.210 H 305.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9042D0
RGBrgb(144, 66, 208)
HSLhsl(273, 60%, 54%)
HSVhsv(273, 68%, 82%)
CMYKcmyk(30.8%, 68.3%, 0%, 18.4%)
CIE-LABlab(44.77, 57.69, -60.21)
CIE-LCHlch(44.77, 83.39, 313.78°)
OKLaboklab(54.93% 0.1227 -0.1709)
OKLCHoklch(54.93% 0.21 305.7)
XYZxyz(24.8325, 14.3800, 61.1297)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D0 #82D042
analogous
#4942D0 #9042D0 #D042C9
triadic
#9042D0 #D09042 #42D090
tetradic
#9042D0 #D04942 #82D042 #42C9D0
square
#9042D0 #D04942 #82D042 #42C9D0
split-complementary
#9042D0 #C9D042 #42D049
monochromatic
#501E79 #712AAA #9042D0 #AD73DC #CAA4E8

Accessibility & contrast

On white

5.42
#9042D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9042D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D0
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D0#FFFFFF#000000##FFFFFF
##9042D01.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D4
Deuteranopia (green-blind)
#116ACD
Tritanopia (blue-blind)
#856284
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9042d0;
/* rgb */ color: rgb(144, 66, 208);
/* oklch */ color: oklch(54.9% 0.210 305.7);
Tailwind
colors: {
  custom: {
    50: '#b57cdf',
    500: '#9042d0',
    950: '#000000',
  },
}
SCSS
$custom: #9042d0;
$custom-light: #b57cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d0",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 272.958,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54933,
    "c": 0.21038,
    "h": 305.7
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#9042D0
secondary
#B4D599
accent
#E3448C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042D0

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

Preview Lab → · Contrast checker → · Palette generator →

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