#904ED9#904ED9

#904ED9 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.205 H 302.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#904ED9
RGBrgb(144, 78, 217)
HSLhsl(268, 65%, 58%)
HSVhsv(268, 64%, 85%)
CMYKcmyk(33.6%, 64.1%, 0%, 14.9%)
CIE-LABlab(47.48, 54.04, -60.99)
CIE-LCHlch(47.48, 81.49, 311.54°)
OKLaboklab(57.07% 0.1087 -0.1732)
OKLCHoklch(57.07% 0.205 302.1)
XYZxyz(26.7474, 16.3878, 67.3862)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904ED9 #97D94E
analogous
#4E52D9 #904ED9 #D54ED9
triadic
#904ED9 #D9904E #4ED990
tetradic
#904ED9 #D94E52 #97D94E #4ED9D5
square
#904ED9 #D94E52 #97D94E #4ED9D5
split-complementary
#904ED9 #D9D54E #52D94E
monochromatic
#531F8E #7129C0 #904ED9 #B080E4 #CFB3EF

Accessibility & contrast

On white

4.91
#904ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#904ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904ED9
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904ED9#FFFFFF#000000##FFFFFF
##904ED91.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#1970D6
Tritanopia (blue-blind)
#816D8D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #904ed9;
/* rgb */ color: rgb(144, 78, 217);
/* oklch */ color: oklch(57.1% 0.205 302.1);
Tailwind
colors: {
  custom: {
    50: '#b583e6',
    500: '#904ed9',
    950: '#000000',
  },
}
SCSS
$custom: #904ed9;
$custom-light: #b583e6;
$custom-dark: #000000;
JSON
{
  "hex": "#904ed9",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 268.489,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57071,
    "c": 0.20454,
    "h": 302.1
  },
  "luminance": 0.16388
}

Semantic roles & 50–950 ramp

primary
#904ED9
secondary
#C3DDA6
accent
#E84098
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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