#904CD4#904CD4

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

Color values

HEX#904CD4
RGBrgb(144, 76, 212)
HSLhsl(270, 61%, 56%)
HSVhsv(270, 64%, 83%)
CMYKcmyk(32.1%, 64.2%, 0%, 16.9%)
CIE-LABlab(46.78, 53.84, -59.26)
CIE-LCHlch(46.78, 80.07, 312.25°)
OKLaboklab(56.46% 0.1114 -0.1682)
OKLCHoklch(56.46% 0.202 303.5)
XYZxyz(25.9670, 15.8517, 63.9663)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD4 #90D44C
analogous
#4C4CD4 #904CD4 #D44CD4
triadic
#904CD4 #D4904C #4CD490
tetradic
#904CD4 #D44C4C #90D44C #4CD4D4
square
#904CD4 #D44C4C #90D44C #4CD4D4
split-complementary
#904CD4 #D4D44C #4CD44C
monochromatic
#532086 #712CB7 #904CD4 #AF7DE0 #CDAFEC

Accessibility & contrast

On white

5.04
#904CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#904CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD4#FFFFFF#000000##FFFFFF
##904CD41.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#206FD1
Tritanopia (blue-blind)
#836989
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904cd4;
/* rgb */ color: rgb(144, 76, 212);
/* oklch */ color: oklch(56.5% 0.202 303.5);
Tailwind
colors: {
  custom: {
    50: '#b582e2',
    500: '#904cd4',
    950: '#000000',
  },
}
SCSS
$custom: #904cd4;
$custom-light: #b582e2;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd4",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 270,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5646,
    "c": 0.20171,
    "h": 303.5
  },
  "luminance": 0.15852
}

Semantic roles & 50–950 ramp

primary
#904CD4
secondary
#BEDAA2
accent
#E44394
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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