#904DCD#904DCD

#904DCD is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.1% C 0.193 H 305.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#904DCD
RGBrgb(144, 77, 205)
HSLhsl(271, 56%, 55%)
HSVhsv(271, 62%, 80%)
CMYKcmyk(29.8%, 62.4%, 0%, 19.6%)
CIE-LABlab(46.51, 51.68, -55.69)
CIE-LCHlch(46.51, 75.97, 312.86°)
OKLaboklab(56.12% 0.1107 -0.1577)
OKLCHoklch(56.12% 0.193 305.1)
XYZxyz(25.1725, 15.6450, 59.4394)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DCD #8ACD4D
analogous
#504DCD #904DCD #CD4DCA
triadic
#904DCD #CD904D #4DCD90
tetradic
#904DCD #CD504D #8ACD4D #4DCACD
square
#904DCD #CD504D #8ACD4D #4DCACD
split-complementary
#904DCD #CACD4D #4DCD50
monochromatic
#52237D #7130AC #904DCD #AE7DDA #CCADE8

Accessibility & contrast

On white

5.09
#904DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#904DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DCD
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DCD#FFFFFF#000000##FFFFFF
##904DCD1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#856886
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904dcd;
/* rgb */ color: rgb(144, 77, 205);
/* oklch */ color: oklch(56.1% 0.193 305.1);
Tailwind
colors: {
  custom: {
    50: '#b582dd',
    500: '#904dcd',
    950: '#000000',
  },
}
SCSS
$custom: #904dcd;
$custom-light: #b582dd;
$custom-dark: #000000;
JSON
{
  "hex": "#904dcd",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 271.406,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56116,
    "c": 0.19264,
    "h": 305.1
  },
  "luminance": 0.15645
}

Semantic roles & 50–950 ramp

primary
#904DCD
secondary
#BAD6A0
accent
#DF4890
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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