#904CD5#904CD5

#904CD5 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.203 H 303.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#904CD5
RGBrgb(144, 76, 213)
HSLhsl(270, 62%, 57%)
HSVhsv(270, 64%, 84%)
CMYKcmyk(32.4%, 64.3%, 0%, 16.5%)
CIE-LABlab(46.85, 54.08, -59.73)
CIE-LCHlch(46.85, 80.57, 312.16°)
OKLaboklab(56.53% 0.1113 -0.1695)
OKLCHoklch(56.53% 0.203 303.3)
XYZxyz(26.0935, 15.9023, 64.6327)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD5 #91D54C
analogous
#4C4DD5 #904CD5 #D54CD5
triadic
#904CD5 #D5904C #4CD590
tetradic
#904CD5 #D54C4D #91D54C #4CD5D5
square
#904CD5 #D54C4D #91D54C #4CD5D5
split-complementary
#904CD5 #D5D54C #4DD54C
monochromatic
#532087 #712BB9 #904CD5 #AF7EE1 #CDAFEC

Accessibility & contrast

On white

5.02
#904CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#904CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD5#FFFFFF#000000##FFFFFF
##904CD51.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#1E6FD2
Tritanopia (blue-blind)
#836A8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904cd5;
/* rgb */ color: rgb(144, 76, 213);
/* oklch */ color: oklch(56.5% 0.203 303.3);
Tailwind
colors: {
  custom: {
    50: '#b582e3',
    500: '#904cd5',
    950: '#000000',
  },
}
SCSS
$custom: #904cd5;
$custom-light: #b582e3;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd5",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 269.781,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56529,
    "c": 0.2028,
    "h": 303.3
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#904CD5
secondary
#BFDAA2
accent
#E54394
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #904CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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