#904ECD#904ECD

#904ECD is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.3% C 0.191 H 304.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#904ECD
RGBrgb(144, 78, 205)
HSLhsl(271, 56%, 55%)
HSVhsv(271, 62%, 80%)
CMYKcmyk(29.8%, 62%, 0%, 19.6%)
CIE-LABlab(46.69, 51.17, -55.39)
CIE-LCHlch(46.69, 75.40, 312.73°)
OKLaboklab(56.25% 0.1095 -0.1568)
OKLCHoklch(56.25% 0.191 304.9)
XYZxyz(25.2430, 15.7860, 59.4629)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904ECD #8BCD4E
analogous
#504ECD #904ECD #CD4ECA
triadic
#904ECD #CD904E #4ECD90
tetradic
#904ECD #CD504E #8BCD4E #4ECACD
square
#904ECD #CD504E #8BCD4E #4ECACD
split-complementary
#904ECD #CACD4E #4ECD50
monochromatic
#52237D #7131AD #904ECD #AE7EDA #CCADE8

Accessibility & contrast

On white

5.05
#904ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#904ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904ECD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904ECD#FFFFFF#000000##FFFFFF
##904ECD1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#2F6FCA
Tritanopia (blue-blind)
#856886
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904ecd;
/* rgb */ color: rgb(144, 78, 205);
/* oklch */ color: oklch(56.3% 0.191 304.9);
Tailwind
colors: {
  custom: {
    50: '#b483dd',
    500: '#904ecd',
    950: '#000000',
  },
}
SCSS
$custom: #904ecd;
$custom-light: #b483dd;
$custom-dark: #000000;
JSON
{
  "hex": "#904ecd",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 205
  },
  "hsl": {
    "h": 271.181,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56251,
    "c": 0.19124,
    "h": 304.9
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#904ECD
secondary
#BAD6A1
accent
#DF4991
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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