#9042E0#9042E0

#9042E0 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.227 H 302.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9042E0
RGBrgb(144, 66, 224)
HSLhsl(270, 72%, 57%)
HSVhsv(270, 71%, 88%)
CMYKcmyk(35.7%, 70.5%, 0%, 12.2%)
CIE-LABlab(45.92, 61.40, -67.51)
CIE-LCHlch(45.92, 91.25, 312.29°)
OKLaboklab(56.11% 0.1203 -0.1923)
OKLCHoklch(56.11% 0.227 302)
XYZxyz(26.9011, 15.2074, 72.0246)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9042E0 #92E042
analogous
#4243E0 #9042E0 #DF42E0
triadic
#9042E0 #E09042 #42E090
tetradic
#9042E0 #E04243 #92E042 #42E0DF
square
#9042E0 #E04243 #92E042 #42E0DF
split-complementary
#9042E0 #E0DF42 #43E042
monochromatic
#531890 #7120C5 #9042E0 #AF77E9 #CEABF1

Accessibility & contrast

On white

5.20
#9042E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9042E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9042E0
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9042E0#FFFFFF#000000##FFFFFF
##9042E01.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE5
Deuteranopia (green-blind)
#006CDD
Tritanopia (blue-blind)
#7F688D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9042e0;
/* rgb */ color: rgb(144, 66, 224);
/* oklch */ color: oklch(56.1% 0.227 302.0);
Tailwind
colors: {
  custom: {
    50: '#b77deb',
    500: '#9042e0',
    950: '#000000',
  },
}
SCSS
$custom: #9042e0;
$custom-light: #b77deb;
$custom-dark: #000000;
JSON
{
  "hex": "#9042e0",
  "rgb": {
    "r": 144,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 269.62,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56108,
    "c": 0.22688,
    "h": 302
  },
  "luminance": 0.15208
}

Semantic roles & 50–950 ramp

primary
#9042E0
secondary
#BFDF9F
accent
#EF3995
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9042E0

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

Preview Lab → · Contrast checker → · Palette generator →

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