#904ACC#904ACC

#904ACC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.6% C 0.196 H 305.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#904ACC
RGBrgb(144, 74, 204)
HSLhsl(272, 56%, 55%)
HSVhsv(272, 64%, 80%)
CMYKcmyk(29.4%, 63.7%, 0%, 20%)
CIE-LABlab(45.89, 52.94, -56.11)
CIE-LCHlch(45.89, 77.14, 313.34°)
OKLaboklab(55.65% 0.1143 -0.1589)
OKLCHoklch(55.65% 0.196 305.7)
XYZxyz(24.8471, 15.1867, 58.7374)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904ACC #86CC4A
analogous
#4F4ACC #904ACC #CC4AC7
triadic
#904ACC #CC904A #4ACC90
tetradic
#904ACC #CC4F4A #86CC4A #4AC7CC
square
#904ACC #CC4F4A #86CC4A #4AC7CC
split-complementary
#904ACC #C7CC4A #4ACC4F
monochromatic
#512279 #7130A9 #904ACC #AD7AD9 #CBA9E7

Accessibility & contrast

On white

5.20
#904ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#904ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904ACC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904ACC#FFFFFF#000000##FFFFFF
##904ACC1.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)
#006BD0
Deuteranopia (green-blind)
#2B6DC9
Tritanopia (blue-blind)
#866584
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #904acc;
/* rgb */ color: rgb(144, 74, 204);
/* oklch */ color: oklch(55.6% 0.196 305.7);
Tailwind
colors: {
  custom: {
    50: '#b581dc',
    500: '#904acc',
    950: '#000000',
  },
}
SCSS
$custom: #904acc;
$custom-light: #b581dc;
$custom-dark: #000000;
JSON
{
  "hex": "#904acc",
  "rgb": {
    "r": 144,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 272.308,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55649,
    "c": 0.19569,
    "h": 305.7
  },
  "luminance": 0.15186
}

Semantic roles & 50–950 ramp

primary
#904ACC
secondary
#B7D49D
accent
#DF488E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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