#9042CA#9042CA

#9042CA is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.5% C 0.204 H 307.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9042CA
RGBrgb(144, 66, 202)
HSLhsl(274, 56%, 53%)
HSVhsv(274, 67%, 79%)
CMYKcmyk(28.7%, 67.3%, 0%, 20.8%)
CIE-LABlab(44.36, 56.32, -57.41)
CIE-LCHlch(44.36, 80.43, 314.45°)
OKLaboklab(54.51% 0.1234 -0.1627)
OKLCHoklch(54.51% 0.204 307.2)
XYZxyz(24.1082, 14.0903, 57.3153)
Luminance0.1409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042CA #7CCA42
analogous
#4C42CA #9042CA #CA42C0
triadic
#9042CA #CA9042 #42CA90
tetradic
#9042CA #CA4C42 #7CCA42 #42C0CA
square
#9042CA #CA4C42 #7CCA42 #42C0CA
split-complementary
#9042CA #C0CA42 #42CA4C
monochromatic
#4F2072 #702DA2 #9042CA #AC72D7 #C8A2E5

Accessibility & contrast

On white

5.50
#9042CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9042CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042CA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042CA#FFFFFF#000000##FFFFFF
##9042CA1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#206AC7
Tritanopia (blue-blind)
#876081
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9042ca;
/* rgb */ color: rgb(144, 66, 202);
/* oklch */ color: oklch(54.5% 0.204 307.2);
Tailwind
colors: {
  custom: {
    50: '#b57cdb',
    500: '#9042ca',
    950: '#000000',
  },
}
SCSS
$custom: #9042ca;
$custom-light: #b57cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9042ca",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 274.412,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54509,
    "c": 0.20418,
    "h": 307.2
  },
  "luminance": 0.1409
}

Semantic roles & 50–950 ramp

primary
#9042CA
secondary
#B0D196
accent
#DF4889
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042CA

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

Preview Lab → · Contrast checker → · Palette generator →

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