#9042CF#9042CF

#9042CF is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.209 H 305.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9042CF
RGBrgb(144, 66, 207)
HSLhsl(273, 59%, 54%)
HSVhsv(273, 68%, 81%)
CMYKcmyk(30.4%, 68.1%, 0%, 18.8%)
CIE-LABlab(44.70, 57.46, -59.75)
CIE-LCHlch(44.70, 82.89, 313.88°)
OKLaboklab(54.86% 0.1228 -0.1695)
OKLCHoklch(54.86% 0.209 305.9)
XYZxyz(24.7098, 14.3309, 60.4838)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042CF #81CF42
analogous
#4942CF #9042CF #CF42C8
triadic
#9042CF #CF9042 #42CF90
tetradic
#9042CF #CF4942 #81CF42 #42C8CF
square
#9042CF #CF4942 #81CF42 #42C8CF
split-complementary
#9042CF #C8CF42 #42CF49
monochromatic
#501F78 #712BA9 #9042CF #AD73DB #C9A4E8

Accessibility & contrast

On white

5.43
#9042CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9042CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042CF
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042CF#FFFFFF#000000##FFFFFF
##9042CF1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#146ACC
Tritanopia (blue-blind)
#856283
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9042cf;
/* rgb */ color: rgb(144, 66, 207);
/* oklch */ color: oklch(54.9% 0.209 305.9);
Tailwind
colors: {
  custom: {
    50: '#b57cde',
    500: '#9042cf',
    950: '#000000',
  },
}
SCSS
$custom: #9042cf;
$custom-light: #b57cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9042cf",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 273.191,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54861,
    "c": 0.20935,
    "h": 305.9
  },
  "luminance": 0.14331
}

Semantic roles & 50–950 ramp

primary
#9042CF
secondary
#B3D598
accent
#E3458C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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