#904DD2#904DD2

#904DD2 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.5% C 0.198 H 303.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#904DD2
RGBrgb(144, 77, 210)
HSLhsl(270, 60%, 56%)
HSVhsv(270, 63%, 82%)
CMYKcmyk(31.4%, 63.3%, 0%, 17.6%)
CIE-LABlab(46.83, 52.86, -58.04)
CIE-LCHlch(46.83, 78.50, 312.33°)
OKLaboklab(56.45% 0.1104 -0.1645)
OKLCHoklch(56.45% 0.198 303.9)
XYZxyz(25.7857, 15.8903, 62.6689)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DD2 #8FD24D
analogous
#4E4DD2 #904DD2 #D24DD1
triadic
#904DD2 #D2904D #4DD290
tetradic
#904DD2 #D24E4D #8FD24D #4DD1D2
square
#904DD2 #D24E4D #8FD24D #4DD1D2
split-complementary
#904DD2 #D1D24D #4DD24E
monochromatic
#532183 #712EB4 #904DD2 #AE7EDE #CDAFEB

Accessibility & contrast

On white

5.03
#904DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#904DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DD2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DD2#FFFFFF#000000##FFFFFF
##904DD21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#266FCF
Tritanopia (blue-blind)
#846989
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904dd2;
/* rgb */ color: rgb(144, 77, 210);
/* oklch */ color: oklch(56.5% 0.198 303.9);
Tailwind
colors: {
  custom: {
    50: '#b583e1',
    500: '#904dd2',
    950: '#000000',
  },
}
SCSS
$custom: #904dd2;
$custom-light: #b583e1;
$custom-dark: #000000;
JSON
{
  "hex": "#904dd2",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 270.226,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56454,
    "c": 0.19815,
    "h": 303.9
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#904DD2
secondary
#BDD9A2
accent
#E34593
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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