#904EC7#904EC7

#904EC7 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.9% C 0.185 H 306.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#904EC7
RGBrgb(144, 78, 199)
HSLhsl(273, 52%, 54%)
HSVhsv(273, 61%, 78%)
CMYKcmyk(27.6%, 60.8%, 0%, 22%)
CIE-LABlab(46.31, 49.76, -52.54)
CIE-LCHlch(46.31, 72.36, 313.44°)
OKLaboklab(55.86% 0.1097 -0.1484)
OKLCHoklch(55.86% 0.185 306.5)
XYZxyz(24.5326, 15.5018, 55.7215)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904EC7 #85C74E
analogous
#544EC7 #904EC7 #C74EC2
triadic
#904EC7 #C7904E #4EC790
tetradic
#904EC7 #C7544E #85C74E #4EC2C7
square
#904EC7 #C7544E #85C74E #4EC2C7
split-complementary
#904EC7 #C2C74E #4EC754
monochromatic
#512575 #7134A4 #904EC7 #AD7CD6 #CAABE4

Accessibility & contrast

On white

5.12
#904EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#904EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904EC7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904EC7#FFFFFF#000000##FFFFFF
##904EC71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116CCB
Deuteranopia (green-blind)
#376EC4
Tritanopia (blue-blind)
#876683
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904ec7;
/* rgb */ color: rgb(144, 78, 199);
/* oklch */ color: oklch(55.9% 0.185 306.5);
Tailwind
colors: {
  custom: {
    50: '#b483d9',
    500: '#904ec7',
    950: '#000000',
  },
}
SCSS
$custom: #904ec7;
$custom-light: #b483d9;
$custom-dark: #000000;
JSON
{
  "hex": "#904ec7",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 199
  },
  "hsl": {
    "h": 272.727,
    "s": 51.931,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55855,
    "c": 0.18457,
    "h": 306.5
  },
  "luminance": 0.15502
}

Semantic roles & 50–950 ramp

primary
#904EC7
secondary
#B6D29F
accent
#DB4C8D
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #904EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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