#9042A2#9042A2

#9042A2 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 51.9% C 0.163 H 319.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9042A2
RGBrgb(144, 66, 162)
HSLhsl(289, 42%, 45%)
HSVhsv(289, 59%, 64%)
CMYKcmyk(11.1%, 59.3%, 0%, 36.5%)
CIE-LABlab(41.90, 47.68, -37.86)
CIE-LCHlch(41.90, 60.88, 321.55°)
OKLaboklab(51.94% 0.1246 -0.1054)
OKLCHoklch(51.94% 0.163 319.8)
XYZxyz(19.9706, 12.4352, 35.5237)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042A2 #54A242
analogous
#6042A2 #9042A2 #A24284
triadic
#9042A2 #A29042 #42A290
tetradic
#9042A2 #A26042 #54A242 #4284A2
square
#9042A2 #A26042 #54A242 #4284A2
split-complementary
#9042A2 #84A242 #42A260
monochromatic
#431F4B #693077 #9042A2 #AE62BF #C48ED1

Accessibility & contrast

On white

6.02
#9042A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9042A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042A2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042A2#FFFFFF#000000##FFFFFF
##9042A21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5DA5
Deuteranopia (green-blind)
#49669F
Tritanopia (blue-blind)
#91516C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9042a2;
/* rgb */ color: rgb(144, 66, 162);
/* oklch */ color: oklch(51.9% 0.163 319.8);
Tailwind
colors: {
  custom: {
    50: '#b37bbe',
    500: '#9042a2',
    950: '#000000',
  },
}
SCSS
$custom: #9042a2;
$custom-light: #b37bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9042a2",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 288.75,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51939,
    "c": 0.16318,
    "h": 319.8
  },
  "luminance": 0.12434
}

Semantic roles & 50–950 ramp

primary
#9042A2
secondary
#8EBC84
accent
#D2566D
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #9042A2

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

Preview Lab → · Contrast checker → · Palette generator →

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