#904DD8#904DD8

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

Color values

HEX#904DD8
RGBrgb(144, 77, 216)
HSLhsl(269, 64%, 57%)
HSVhsv(269, 64%, 85%)
CMYKcmyk(33.3%, 64.4%, 0%, 15.3%)
CIE-LABlab(47.23, 54.30, -60.82)
CIE-LCHlch(47.23, 81.53, 311.75°)
OKLaboklab(56.87% 0.1099 -0.1727)
OKLCHoklch(56.87% 0.205 302.5)
XYZxyz(26.5473, 16.1949, 66.6798)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DD8 #95D84D
analogous
#4D50D8 #904DD8 #D64DD8
triadic
#904DD8 #D8904D #4DD890
tetradic
#904DD8 #D84D50 #95D84D #4DD8D6
square
#904DD8 #D84D50 #95D84D #4DD8D6
split-complementary
#904DD8 #D8D64D #50D84D
monochromatic
#531F8C #712ABE #904DD8 #AF7FE3 #CFB1EE

Accessibility & contrast

On white

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

On black

4.24
#904DD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##904DD8#FFFFFF#000000##FFFFFF
##904DD81.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#1970D5
Tritanopia (blue-blind)
#826C8C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904dd8;
/* rgb */ color: rgb(144, 77, 216);
/* oklch */ color: oklch(56.9% 0.205 302.5);
Tailwind
colors: {
  custom: {
    50: '#b583e5',
    500: '#904dd8',
    950: '#000000',
  },
}
SCSS
$custom: #904dd8;
$custom-light: #b583e5;
$custom-dark: #000000;
JSON
{
  "hex": "#904dd8",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 216
  },
  "hsl": {
    "h": 268.921,
    "s": 64.055,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56869,
    "c": 0.20477,
    "h": 302.5
  },
  "luminance": 0.16195
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #904DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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