#9042DB#9042DB

#9042DB is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.222 H 303.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9042DB
RGBrgb(144, 66, 219)
HSLhsl(271, 68%, 56%)
HSVhsv(271, 70%, 86%)
CMYKcmyk(34.2%, 69.9%, 0%, 14.1%)
CIE-LABlab(45.55, 60.23, -65.25)
CIE-LCHlch(45.55, 88.80, 312.71°)
OKLaboklab(55.73% 0.1212 -0.1857)
OKLCHoklch(55.73% 0.222 303.1)
XYZxyz(26.2330, 14.9402, 68.5058)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042DB #8DDB42
analogous
#4342DB #9042DB #DB42DA
triadic
#9042DB #DB9042 #42DB90
tetradic
#9042DB #DB4342 #8DDB42 #42DADB
square
#9042DB #DB4342 #8DDB42 #42DADB
split-complementary
#9042DB #DADB42 #42DB43
monochromatic
#521A89 #7124BC #9042DB #AE75E5 #CCA9EF

Accessibility & contrast

On white

5.27
#9042DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9042DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042DB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042DB#FFFFFF#000000##FFFFFF
##9042DB1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#81668A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9042db;
/* rgb */ color: rgb(144, 66, 219);
/* oklch */ color: oklch(55.7% 0.222 303.1);
Tailwind
colors: {
  custom: {
    50: '#b67ce7',
    500: '#9042db',
    950: '#000000',
  },
}
SCSS
$custom: #9042db;
$custom-light: #b67ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9042db",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 270.588,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55734,
    "c": 0.22174,
    "h": 303.1
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#9042DB
secondary
#BCDC9D
accent
#EB3D92
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9042DB

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

Preview Lab → · Contrast checker → · Palette generator →

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