#904CD6#904CD6

#904CD6 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.204 H 303.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#904CD6
RGBrgb(144, 76, 214)
HSLhsl(270, 63%, 57%)
HSVhsv(270, 64%, 84%)
CMYKcmyk(32.7%, 64.5%, 0%, 16.1%)
CIE-LABlab(46.91, 54.31, -60.19)
CIE-LCHlch(46.91, 81.08, 312.06°)
OKLaboklab(56.6% 0.1112 -0.1709)
OKLCHoklch(56.6% 0.204 303.1)
XYZxyz(26.2208, 15.9532, 65.3032)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD6 #92D64C
analogous
#4C4DD6 #904CD6 #D54CD6
triadic
#904CD6 #D6904C #4CD690
tetradic
#904CD6 #D64C4D #92D64C #4CD6D5
square
#904CD6 #D64C4D #92D64C #4CD6D5
split-complementary
#904CD6 #D6D54C #4DD64C
monochromatic
#531F88 #712BBA #904CD6 #AF7EE1 #CEB0ED

Accessibility & contrast

On white

5.01
#904CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#904CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD6
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD6#FFFFFF#000000##FFFFFF
##904CD61.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#1C6FD3
Tritanopia (blue-blind)
#826A8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904cd6;
/* rgb */ color: rgb(144, 76, 214);
/* oklch */ color: oklch(56.6% 0.204 303.1);
Tailwind
colors: {
  custom: {
    50: '#b582e3',
    500: '#904cd6',
    950: '#000000',
  },
}
SCSS
$custom: #904cd6;
$custom-light: #b582e3;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd6",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 269.565,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56599,
    "c": 0.2039,
    "h": 303.1
  },
  "luminance": 0.15953
}

Semantic roles & 50–950 ramp

primary
#904CD6
secondary
#BFDBA3
accent
#E64295
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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