#9042BF#9042BF

#9042BF is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.8% C 0.193 H 310.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9042BF
RGBrgb(144, 66, 191)
HSLhsl(277, 49%, 50%)
HSVhsv(277, 65%, 75%)
CMYKcmyk(24.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(43.64, 53.86, -52.20)
CIE-LCHlch(43.64, 75.00, 315.90°)
OKLaboklab(53.76% 0.1243 -0.1473)
OKLCHoklch(53.76% 0.193 310.2)
XYZxyz(22.8520, 13.5878, 50.6990)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042BF #71BF42
analogous
#5142BF #9042BF #BF42AF
triadic
#9042BF #BF9042 #42BF90
tetradic
#9042BF #BF5142 #71BF42 #42AFBF
square
#9042BF #BF5142 #71BF42 #42AFBF
split-complementary
#9042BF #AFBF42 #42BF51
monochromatic
#4C2265 #6E3292 #9042BF #AB70CE #C69DDE

Accessibility & contrast

On white

5.65
#9042BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9042BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042BF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042BF#FFFFFF#000000##FFFFFF
##9042BF1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#3168BC
Tritanopia (blue-blind)
#8A5B7B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9042bf;
/* rgb */ color: rgb(144, 66, 191);
/* oklch */ color: oklch(53.8% 0.193 310.2);
Tailwind
colors: {
  custom: {
    50: '#b47cd3',
    500: '#9042bf',
    950: '#000000',
  },
}
SCSS
$custom: #9042bf;
$custom-light: #b47cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9042bf",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 277.44,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53756,
    "c": 0.1928,
    "h": 310.2
  },
  "luminance": 0.13587
}

Semantic roles & 50–950 ramp

primary
#9042BF
secondary
#A7CA93
accent
#D94F83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #9042BF

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

Preview Lab → · Contrast checker → · Palette generator →

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