#9042BC#9042BC

#9042BC is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.6% C 0.190 H 311.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9042BC
RGBrgb(144, 66, 188)
HSLhsl(278, 48%, 50%)
HSVhsv(278, 65%, 74%)
CMYKcmyk(23.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(43.44, 53.19, -50.75)
CIE-LCHlch(43.44, 73.52, 316.35°)
OKLaboklab(53.56% 0.1245 -0.1431)
OKLCHoklch(53.56% 0.19 311)
XYZxyz(22.5252, 13.4571, 48.9781)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042BC #6EBC42
analogous
#5342BC #9042BC #BC42AB
triadic
#9042BC #BC9042 #42BC90
tetradic
#9042BC #BC5342 #6EBC42 #42ABBC
square
#9042BC #BC5342 #6EBC42 #42ABBC
split-complementary
#9042BC #ABBC42 #42BC53
monochromatic
#4B2261 #6D328F #9042BC #AB6FCC #C59CDC

Accessibility & contrast

On white

5.69
#9042BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9042BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042BC
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042BC#FFFFFF#000000##FFFFFF
##9042BC1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#3468B9
Tritanopia (blue-blind)
#8A5A79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9042bc;
/* rgb */ color: rgb(144, 66, 188);
/* oklch */ color: oklch(53.6% 0.190 311.0);
Tailwind
colors: {
  custom: {
    50: '#b47bd1',
    500: '#9042bc',
    950: '#000000',
  },
}
SCSS
$custom: #9042bc;
$custom-light: #b47bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9042bc",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 278.361,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53556,
    "c": 0.18971,
    "h": 311
  },
  "luminance": 0.13457
}

Semantic roles & 50–950 ramp

primary
#9042BC
secondary
#A5C991
accent
#D85081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #9042BC

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

Preview Lab → · Contrast checker → · Palette generator →

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