#9042CD#9042CD

#9042CD is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.207 H 306.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9042CD
RGBrgb(144, 66, 205)
HSLhsl(274, 58%, 53%)
HSVhsv(274, 68%, 80%)
CMYKcmyk(29.8%, 67.8%, 0%, 19.6%)
CIE-LABlab(44.57, 57.00, -58.82)
CIE-LCHlch(44.57, 81.91, 314.10°)
OKLaboklab(54.72% 0.1231 -0.1668)
OKLCHoklch(54.72% 0.207 306.4)
XYZxyz(24.4669, 14.2337, 59.2042)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042CD #7FCD42
analogous
#4A42CD #9042CD #CD42C4
triadic
#9042CD #CD9042 #42CD90
tetradic
#9042CD #CD4A42 #7FCD42 #42C4CD
square
#9042CD #CD4A42 #7FCD42 #42C4CD
split-complementary
#9042CD #C4CD42 #42CD4A
monochromatic
#501F76 #702CA6 #9042CD #AC72DA #C9A3E7

Accessibility & contrast

On white

5.46
#9042CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9042CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042CD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042CD#FFFFFF#000000##FFFFFF
##9042CD1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#1A6ACA
Tritanopia (blue-blind)
#866182
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9042cd;
/* rgb */ color: rgb(144, 66, 205);
/* oklch */ color: oklch(54.7% 0.207 306.4);
Tailwind
colors: {
  custom: {
    50: '#b57cdd',
    500: '#9042cd',
    950: '#000000',
  },
}
SCSS
$custom: #9042cd;
$custom-light: #b57cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9042cd",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 273.669,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54719,
    "c": 0.20729,
    "h": 306.4
  },
  "luminance": 0.14233
}

Semantic roles & 50–950 ramp

primary
#9042CD
secondary
#B2D397
accent
#E1468A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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