#904EE6#904EE6

#904EE6 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.0% C 0.219 H 299.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#904EE6
RGBrgb(144, 78, 230)
HSLhsl(266, 75%, 60%)
HSVhsv(266, 66%, 90%)
CMYKcmyk(37.4%, 66.1%, 0%, 9.8%)
CIE-LABlab(48.37, 57.21, -66.92)
CIE-LCHlch(48.37, 88.04, 310.53°)
OKLaboklab(58% 0.1074 -0.1907)
OKLCHoklch(58% 0.219 299.4)
XYZxyz(28.5054, 17.0909, 76.6446)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904EE6 #A4E64E
analogous
#4E58E6 #904EE6 #DC4EE6
triadic
#904EE6 #E6904E #4EE690
tetradic
#904EE6 #E64E58 #A4E64E #4EE6DC
square
#904EE6 #E64E58 #A4E64E #4EE6DC
split-complementary
#904EE6 #E6DC4E #58E64E
monochromatic
#5417A3 #6F1FD8 #904EE6 #B284EE #D3B9F5

Accessibility & contrast

On white

4.75
#904EE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#904EE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904EE6
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904EE6#FFFFFF#000000##FFFFFF
##904EE61.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#7C7194
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #904ee6;
/* rgb */ color: rgb(144, 78, 230);
/* oklch */ color: oklch(58.0% 0.219 299.4);
Tailwind
colors: {
  custom: {
    50: '#b684ef',
    500: '#904ee6',
    950: '#000000',
  },
}
SCSS
$custom: #904ee6;
$custom-light: #b684ef;
$custom-dark: #000000;
JSON
{
  "hex": "#904ee6",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 230
  },
  "hsl": {
    "h": 266.053,
    "s": 75.248,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57998,
    "c": 0.21885,
    "h": 299.4
  },
  "luminance": 0.17091
}

Semantic roles & 50–950 ramp

primary
#904EE6
secondary
#CCE5AB
accent
#D70E80
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #904EE6

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

Preview Lab → · Contrast checker → · Palette generator →

#904EE6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva