#904CD9#904CD9

#904CD9 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.8% C 0.207 H 302.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#904CD9
RGBrgb(144, 76, 217)
HSLhsl(269, 65%, 57%)
HSVhsv(269, 65%, 85%)
CMYKcmyk(33.6%, 65%, 0%, 14.9%)
CIE-LABlab(47.12, 55.03, -61.58)
CIE-LCHlch(47.12, 82.59, 311.79°)
OKLaboklab(56.81% 0.111 -0.175)
OKLCHoklch(56.81% 0.207 302.4)
XYZxyz(26.6075, 16.1079, 67.3396)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD9 #95D94C
analogous
#4C4FD9 #904CD9 #D64CD9
triadic
#904CD9 #D9904C #4CD990
tetradic
#904CD9 #D94C4F #95D94C #4CD9D6
square
#904CD9 #D94C4F #95D94C #4CD9D6
split-complementary
#904CD9 #D9D64C #4FD94C
monochromatic
#531E8D #7129BF #904CD9 #AF7EE4 #CFB1EE

Accessibility & contrast

On white

4.97
#904CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#904CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD9#FFFFFF#000000##FFFFFF
##904CD91.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#136FD6
Tritanopia (blue-blind)
#816B8C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904cd9;
/* rgb */ color: rgb(144, 76, 217);
/* oklch */ color: oklch(56.8% 0.207 302.4);
Tailwind
colors: {
  custom: {
    50: '#b582e6',
    500: '#904cd9',
    950: '#000000',
  },
}
SCSS
$custom: #904cd9;
$custom-light: #b582e6;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd9",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 268.936,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56809,
    "c": 0.20718,
    "h": 302.4
  },
  "luminance": 0.16108
}

Semantic roles & 50–950 ramp

primary
#904CD9
secondary
#C1DDA4
accent
#E84097
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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