#904CDF#904CDF

#904CDF is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.2% C 0.214 H 301.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#904CDF
RGBrgb(144, 76, 223)
HSLhsl(268, 70%, 59%)
HSVhsv(268, 66%, 87%)
CMYKcmyk(35.4%, 65.9%, 0%, 12.5%)
CIE-LABlab(47.53, 56.48, -64.33)
CIE-LCHlch(47.53, 85.60, 311.28°)
OKLaboklab(57.24% 0.1103 -0.183)
OKLCHoklch(57.24% 0.214 301.1)
XYZxyz(27.4021, 16.4257, 71.5246)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CDF #9BDF4C
analogous
#4C51DF #904CDF #D94CDF
triadic
#904CDF #DF904C #4CDF90
tetradic
#904CDF #DF4C51 #9BDF4C #4CDFD9
square
#904CDF #DF4C51 #9BDF4C #4CDFD9
split-complementary
#904CDF #DFD94C #51DF4C
monochromatic
#541B96 #7124CA #904CDF #B080E8 #D0B4F2

Accessibility & contrast

On white

4.90
#904CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#904CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CDF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CDF#FFFFFF#000000##FFFFFF
##904CDF1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#7F6D8F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #904cdf;
/* rgb */ color: rgb(144, 76, 223);
/* oklch */ color: oklch(57.2% 0.214 301.1);
Tailwind
colors: {
  custom: {
    50: '#b682ea',
    500: '#904cdf',
    950: '#000000',
  },
}
SCSS
$custom: #904cdf;
$custom-light: #b682ea;
$custom-dark: #000000;
JSON
{
  "hex": "#904cdf",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 223
  },
  "hsl": {
    "h": 267.755,
    "s": 69.668,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57236,
    "c": 0.21373,
    "h": 301.1
  },
  "luminance": 0.16426
}

Semantic roles & 50–950 ramp

primary
#904CDF
secondary
#C6E0A6
accent
#EC3B9B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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