#904ED6#904ED6

#904ED6 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.9% C 0.201 H 302.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#904ED6
RGBrgb(144, 78, 214)
HSLhsl(269, 62%, 57%)
HSVhsv(269, 64%, 84%)
CMYKcmyk(32.7%, 63.6%, 0%, 16.1%)
CIE-LABlab(47.28, 53.32, -59.60)
CIE-LCHlch(47.28, 79.97, 311.81°)
OKLaboklab(56.86% 0.109 -0.1692)
OKLCHoklch(56.86% 0.201 302.8)
XYZxyz(26.3608, 16.2331, 65.3498)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904ED6 #94D64E
analogous
#4E50D6 #904ED6 #D44ED6
triadic
#904ED6 #D6904E #4ED690
tetradic
#904ED6 #D64E50 #94D64E #4ED6D4
square
#904ED6 #D64E50 #94D64E #4ED6D4
split-complementary
#904ED6 #D6D44E #50D64E
monochromatic
#53208A #712BBB #904ED6 #AF80E2 #CEB1ED

Accessibility & contrast

On white

4.95
#904ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#904ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904ED6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904ED6#FFFFFF#000000##FFFFFF
##904ED61.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#2070D3
Tritanopia (blue-blind)
#826B8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904ed6;
/* rgb */ color: rgb(144, 78, 214);
/* oklch */ color: oklch(56.9% 0.201 302.8);
Tailwind
colors: {
  custom: {
    50: '#b583e3',
    500: '#904ed6',
    950: '#000000',
  },
}
SCSS
$custom: #904ed6;
$custom-light: #b583e3;
$custom-dark: #000000;
JSON
{
  "hex": "#904ed6",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 269.118,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56863,
    "c": 0.20123,
    "h": 302.8
  },
  "luminance": 0.16233
}

Semantic roles & 50–950 ramp

primary
#904ED6
secondary
#C1DBA4
accent
#E54296
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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