#904EE4#904EE4

#904EE4 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.9% C 0.217 H 299.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#904EE4
RGBrgb(144, 78, 228)
HSLhsl(266, 74%, 60%)
HSVhsv(266, 66%, 89%)
CMYKcmyk(36.8%, 65.8%, 0%, 10.6%)
CIE-LABlab(48.23, 56.72, -66.02)
CIE-LCHlch(48.23, 87.03, 310.67°)
OKLaboklab(57.85% 0.1077 -0.188)
OKLCHoklch(57.85% 0.217 299.8)
XYZxyz(28.2261, 16.9792, 75.1740)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904EE4 #A2E44E
analogous
#4E57E4 #904EE4 #DB4EE4
triadic
#904EE4 #E4904E #4EE490
tetradic
#904EE4 #E44E57 #A2E44E #4EE4DB
square
#904EE4 #E44E57 #A2E44E #4EE4DB
split-complementary
#904EE4 #E4DB4E #57E44E
monochromatic
#54189F #7020D4 #904EE4 #B183EC #D3B8F4

Accessibility & contrast

On white

4.78
#904EE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#904EE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904EE4
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904EE4#FFFFFF#000000##FFFFFF
##904EE41.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#7D7093
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #904ee4;
/* rgb */ color: rgb(144, 78, 228);
/* oklch */ color: oklch(57.9% 0.217 299.8);
Tailwind
colors: {
  custom: {
    50: '#b684ed',
    500: '#904ee4',
    950: '#000000',
  },
}
SCSS
$custom: #904ee4;
$custom-light: #b684ed;
$custom-dark: #000000;
JSON
{
  "hex": "#904ee4",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 228
  },
  "hsl": {
    "h": 266.4,
    "s": 73.529,
    "l": 60
  },
  "oklch": {
    "l": 0.57853,
    "c": 0.21666,
    "h": 299.8
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#904EE4
secondary
#CAE4AA
accent
#F0389F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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