#904AD4#904AD4

#904AD4 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.2% C 0.204 H 303.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#904AD4
RGBrgb(144, 74, 212)
HSLhsl(270, 62%, 56%)
HSVhsv(270, 65%, 83%)
CMYKcmyk(32.1%, 65.1%, 0%, 16.9%)
CIE-LABlab(46.42, 54.82, -59.85)
CIE-LCHlch(46.42, 81.16, 312.49°)
OKLaboklab(56.2% 0.1136 -0.1699)
OKLCHoklch(56.2% 0.204 303.8)
XYZxyz(25.8313, 15.5804, 63.9210)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904AD4 #8ED44A
analogous
#4B4AD4 #904AD4 #D44AD3
triadic
#904AD4 #D4904A #4AD490
tetradic
#904AD4 #D44B4A #8ED44A #4AD3D4
square
#904AD4 #D44B4A #8ED44A #4AD3D4
split-complementary
#904AD4 #D3D44A #4AD44B
monochromatic
#531F84 #712BB6 #904AD4 #AE7BE0 #CDADEB

Accessibility & contrast

On white

5.10
#904AD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#904AD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904AD4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904AD4#FFFFFF#000000##FFFFFF
##904AD41.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#1C6ED1
Tritanopia (blue-blind)
#836889
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904ad4;
/* rgb */ color: rgb(144, 74, 212);
/* oklch */ color: oklch(56.2% 0.204 303.8);
Tailwind
colors: {
  custom: {
    50: '#b581e2',
    500: '#904ad4',
    950: '#000000',
  },
}
SCSS
$custom: #904ad4;
$custom-light: #b581e2;
$custom-dark: #000000;
JSON
{
  "hex": "#904ad4",
  "rgb": {
    "r": 144,
    "g": 74,
    "b": 212
  },
  "hsl": {
    "h": 270.435,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.562,
    "c": 0.20436,
    "h": 303.8
  },
  "luminance": 0.1558
}

Semantic roles & 50–950 ramp

primary
#904AD4
secondary
#BCD9A0
accent
#E54393
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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