#9042D2#9042D2

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

Color values

HEX#9042D2
RGBrgb(144, 66, 210)
HSLhsl(273, 62%, 54%)
HSVhsv(273, 69%, 82%)
CMYKcmyk(31.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(44.91, 58.15, -61.14)
CIE-LCHlch(44.91, 84.37, 313.57°)
OKLaboklab(55.08% 0.1225 -0.1736)
OKLCHoklch(55.08% 0.212 305.2)
XYZxyz(25.0801, 14.4790, 62.4337)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042D2 #84D242
analogous
#4842D2 #9042D2 #D242CC
triadic
#9042D2 #D29042 #42D290
tetradic
#9042D2 #D24842 #84D242 #42CCD2
square
#9042D2 #D24842 #84D242 #42CCD2
split-complementary
#9042D2 #CCD242 #42D248
monochromatic
#511E7C #7129AD #9042D2 #AD73DE #CAA5EA

Accessibility & contrast

On white

5.39
#9042D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9042D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042D2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042D2#FFFFFF#000000##FFFFFF
##9042D21.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#086ACF
Tritanopia (blue-blind)
#846385
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9042d2;
/* rgb */ color: rgb(144, 66, 210);
/* oklch */ color: oklch(55.1% 0.212 305.2);
Tailwind
colors: {
  custom: {
    50: '#b57ce1',
    500: '#9042d2',
    950: '#000000',
  },
}
SCSS
$custom: #9042d2;
$custom-light: #b57ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9042d2",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 272.5,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55076,
    "c": 0.21245,
    "h": 305.2
  },
  "luminance": 0.14479
}

Semantic roles & 50–950 ramp

primary
#9042D2
secondary
#B5D799
accent
#E5438D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042D2

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

Preview Lab → · Contrast checker → · Palette generator →

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