#904ED5#904ED5

#904ED5 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.8% C 0.200 H 303.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#904ED5
RGBrgb(144, 78, 213)
HSLhsl(269, 62%, 57%)
HSVhsv(269, 63%, 84%)
CMYKcmyk(32.4%, 63.4%, 0%, 16.5%)
CIE-LABlab(47.21, 53.08, -59.14)
CIE-LCHlch(47.21, 79.46, 311.91°)
OKLaboklab(56.79% 0.1091 -0.1678)
OKLCHoklch(56.79% 0.2 303)
XYZxyz(26.2335, 16.1822, 64.6793)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904ED5 #93D54E
analogous
#4E50D5 #904ED5 #D34ED5
triadic
#904ED5 #D5904E #4ED590
tetradic
#904ED5 #D54E50 #93D54E #4ED5D3
square
#904ED5 #D54E50 #93D54E #4ED5D3
split-complementary
#904ED5 #D5D34E #50D54E
monochromatic
#532088 #712CBA #904ED5 #AF7FE1 #CEB1EC

Accessibility & contrast

On white

4.96
#904ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #904ED5
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904ED5#FFFFFF#000000##FFFFFF
##904ED51.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#2270D2
Tritanopia (blue-blind)
#836B8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904ed5;
/* rgb */ color: rgb(144, 78, 213);
/* oklch */ color: oklch(56.8% 0.200 303.0);
Tailwind
colors: {
  custom: {
    50: '#b583e3',
    500: '#904ed5',
    950: '#000000',
  },
}
SCSS
$custom: #904ed5;
$custom-light: #b583e3;
$custom-dark: #000000;
JSON
{
  "hex": "#904ed5",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 213
  },
  "hsl": {
    "h": 269.333,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56794,
    "c": 0.20011,
    "h": 303
  },
  "luminance": 0.16182
}

Semantic roles & 50–950 ramp

primary
#904ED5
secondary
#C0DBA4
accent
#E54396
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #904ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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