#904CD8#904CD8

#904CD8 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.206 H 302.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#904CD8
RGBrgb(144, 76, 216)
HSLhsl(269, 64%, 57%)
HSVhsv(269, 65%, 85%)
CMYKcmyk(33.3%, 64.8%, 0%, 15.3%)
CIE-LABlab(47.05, 54.79, -61.12)
CIE-LCHlch(47.05, 82.08, 311.88°)
OKLaboklab(56.74% 0.1111 -0.1736)
OKLCHoklch(56.74% 0.206 302.6)
XYZxyz(26.4778, 16.0560, 66.6566)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD8 #94D84C
analogous
#4C4ED8 #904CD8 #D64CD8
triadic
#904CD8 #D8904C #4CD890
tetradic
#904CD8 #D84C4E #94D84C #4CD8D6
square
#904CD8 #D84C4E #94D84C #4CD8D6
split-complementary
#904CD8 #D8D64C #4ED84C
monochromatic
#531E8B #7129BE #904CD8 #AF7EE3 #CEB1EE

Accessibility & contrast

On white

4.99
#904CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#904CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD8#FFFFFF#000000##FFFFFF
##904CD81.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#166FD5
Tritanopia (blue-blind)
#826B8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904cd8;
/* rgb */ color: rgb(144, 76, 216);
/* oklch */ color: oklch(56.7% 0.206 302.6);
Tailwind
colors: {
  custom: {
    50: '#b582e5',
    500: '#904cd8',
    950: '#000000',
  },
}
SCSS
$custom: #904cd8;
$custom-light: #b582e5;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd8",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 269.143,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56739,
    "c": 0.20609,
    "h": 302.6
  },
  "luminance": 0.16056
}

Semantic roles & 50–950 ramp

primary
#904CD8
secondary
#C1DCA4
accent
#E74196
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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