#9042AF#9042AF

#9042AF is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.7% C 0.176 H 315.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9042AF
RGBrgb(144, 66, 175)
HSLhsl(283, 45%, 47%)
HSVhsv(283, 62%, 69%)
CMYKcmyk(17.7%, 62.3%, 0%, 31.4%)
CIE-LABlab(42.64, 50.38, -44.39)
CIE-LCHlch(42.64, 67.15, 318.62°)
OKLaboklab(52.72% 0.1249 -0.1245)
OKLCHoklch(52.72% 0.176 315.1)
XYZxyz(21.1864, 12.9216, 41.9272)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042AF #61AF42
analogous
#5A42AF #9042AF #AF4297
triadic
#9042AF #AF9042 #42AF90
tetradic
#9042AF #AF5A42 #61AF42 #4297AF
square
#9042AF #AF5A42 #61AF42 #4297AF
split-complementary
#9042AF #97AF42 #42AF5A
monochromatic
#472056 #6B3183 #9042AF #AB68C6 #C495D7

Accessibility & contrast

On white

5.86
#9042AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9042AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042AF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042AF#FFFFFF#000000##FFFFFF
##9042AF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D60B2
Deuteranopia (green-blind)
#4067AC
Tritanopia (blue-blind)
#8E5672
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9042af;
/* rgb */ color: rgb(144, 66, 175);
/* oklch */ color: oklch(52.7% 0.176 315.1);
Tailwind
colors: {
  custom: {
    50: '#b37bc7',
    500: '#9042af',
    950: '#000000',
  },
}
SCSS
$custom: #9042af;
$custom-light: #b37bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9042af",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 282.936,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52722,
    "c": 0.17634,
    "h": 315.1
  },
  "luminance": 0.12921
}

Semantic roles & 50–950 ramp

primary
#9042AF
secondary
#9AC28A
accent
#D55378
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #9042AF

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

Preview Lab → · Contrast checker → · Palette generator →

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