#9042BE#9042BE

#9042BE is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.7% C 0.192 H 310.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9042BE
RGBrgb(144, 66, 190)
HSLhsl(278, 49%, 50%)
HSVhsv(278, 65%, 75%)
CMYKcmyk(24.2%, 65.3%, 0%, 25.5%)
CIE-LABlab(43.57, 53.64, -51.72)
CIE-LCHlch(43.57, 74.51, 316.04°)
OKLaboklab(53.69% 0.1244 -0.1459)
OKLCHoklch(53.69% 0.192 310.4)
XYZxyz(22.7423, 13.5439, 50.1214)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042BE #70BE42
analogous
#5242BE #9042BE #BE42AE
triadic
#9042BE #BE9042 #42BE90
tetradic
#9042BE #BE5242 #70BE42 #42AEBE
square
#9042BE #BE5242 #70BE42 #42AEBE
split-complementary
#9042BE #AEBE42 #42BE52
monochromatic
#4B2263 #6E3291 #9042BE #AB70CE #C59DDD

Accessibility & contrast

On white

5.66
#9042BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9042BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042BE
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042BE#FFFFFF#000000##FFFFFF
##9042BE1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#3268BB
Tritanopia (blue-blind)
#8A5B7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9042be;
/* rgb */ color: rgb(144, 66, 190);
/* oklch */ color: oklch(53.7% 0.192 310.4);
Tailwind
colors: {
  custom: {
    50: '#b47bd2',
    500: '#9042be',
    950: '#000000',
  },
}
SCSS
$custom: #9042be;
$custom-light: #b47bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9042be",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 277.742,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53689,
    "c": 0.19177,
    "h": 310.4
  },
  "luminance": 0.13543
}

Semantic roles & 50–950 ramp

primary
#9042BE
secondary
#A7CA92
accent
#D84F82
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #9042BE

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

Preview Lab → · Contrast checker → · Palette generator →

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