#904CCD#904CCD

#904CCD is a mid, vivid violet. Relative luminance 0.155; OKLCH L 56.0% C 0.194 H 305.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#904CCD
RGBrgb(144, 76, 205)
HSLhsl(272, 56%, 55%)
HSVhsv(272, 63%, 80%)
CMYKcmyk(29.8%, 62.9%, 0%, 19.6%)
CIE-LABlab(46.32, 52.18, -55.99)
CIE-LCHlch(46.32, 76.53, 312.98°)
OKLaboklab(55.98% 0.1119 -0.1585)
OKLCHoklch(55.98% 0.194 305.2)
XYZxyz(25.1031, 15.5061, 59.4163)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CCD #89CD4C
analogous
#4F4CCD #904CCD #CD4CC9
triadic
#904CCD #CD904C #4CCD90
tetradic
#904CCD #CD4F4C #89CD4C #4CC9CD
square
#904CCD #CD4F4C #89CD4C #4CC9CD
split-complementary
#904CCD #C9CD4C #4CCD4F
monochromatic
#52237C #7130AC #904CCD #AE7CDA #CBACE8

Accessibility & contrast

On white

5.12
#904CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#904CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CCD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CCD#FFFFFF#000000##FFFFFF
##904CCD1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #904ccd;
/* rgb */ color: rgb(144, 76, 205);
/* oklch */ color: oklch(56.0% 0.194 305.2);
Tailwind
colors: {
  custom: {
    50: '#b582dd',
    500: '#904ccd',
    950: '#000000',
  },
}
SCSS
$custom: #904ccd;
$custom-light: #b582dd;
$custom-dark: #000000;
JSON
{
  "hex": "#904ccd",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 205
  },
  "hsl": {
    "h": 271.628,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55981,
    "c": 0.19403,
    "h": 305.2
  },
  "luminance": 0.15506
}

Semantic roles & 50–950 ramp

primary
#904CCD
secondary
#B9D59F
accent
#E04890
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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