#9042CB#9042CB

#9042CB is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.6% C 0.205 H 306.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9042CB
RGBrgb(144, 66, 203)
HSLhsl(274, 57%, 53%)
HSVhsv(274, 67%, 80%)
CMYKcmyk(29.1%, 67.5%, 0%, 20.4%)
CIE-LABlab(44.43, 56.55, -57.88)
CIE-LCHlch(44.43, 80.92, 314.33°)
OKLaboklab(54.58% 0.1233 -0.164)
OKLCHoklch(54.58% 0.205 306.9)
XYZxyz(24.2270, 14.1378, 57.9409)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042CB #7DCB42
analogous
#4C42CB #9042CB #CB42C1
triadic
#9042CB #CB9042 #42CB90
tetradic
#9042CB #CB4C42 #7DCB42 #42C1CB
square
#9042CB #CB4C42 #7DCB42 #42C1CB
split-complementary
#9042CB #C1CB42 #42CB4C
monochromatic
#4F2073 #702DA3 #9042CB #AC72D8 #C8A2E5

Accessibility & contrast

On white

5.49
#9042CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9042CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042CB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042CB#FFFFFF#000000##FFFFFF
##9042CB1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#1E6AC8
Tritanopia (blue-blind)
#866081
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9042cb;
/* rgb */ color: rgb(144, 66, 203);
/* oklch */ color: oklch(54.6% 0.205 306.9);
Tailwind
colors: {
  custom: {
    50: '#b57cdc',
    500: '#9042cb',
    950: '#000000',
  },
}
SCSS
$custom: #9042cb;
$custom-light: #b57cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9042cb",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 274.161,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54579,
    "c": 0.20521,
    "h": 306.9
  },
  "luminance": 0.14138
}

Semantic roles & 50–950 ramp

primary
#9042CB
secondary
#B0D297
accent
#E04889
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042CB

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

Preview Lab → · Contrast checker → · Palette generator →

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