#904CD2#904CD2

#904CD2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.3% C 0.200 H 304.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#904CD2
RGBrgb(144, 76, 210)
HSLhsl(270, 60%, 56%)
HSVhsv(270, 64%, 82%)
CMYKcmyk(31.4%, 63.8%, 0%, 17.6%)
CIE-LABlab(46.65, 53.36, -58.33)
CIE-LCHlch(46.65, 79.06, 312.45°)
OKLaboklab(56.32% 0.1116 -0.1654)
OKLCHoklch(56.32% 0.2 304)
XYZxyz(25.7163, 15.7514, 62.6458)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD2 #8ED24C
analogous
#4D4CD2 #904CD2 #D24CD1
triadic
#904CD2 #D2904C #4CD290
tetradic
#904CD2 #D24D4C #8ED24C #4CD1D2
square
#904CD2 #D24D4C #8ED24C #4CD1D2
split-complementary
#904CD2 #D1D24C #4CD24D
monochromatic
#532183 #712DB4 #904CD2 #AE7DDE #CDAEEB

Accessibility & contrast

On white

5.06
#904CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#904CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD2#FFFFFF#000000##FFFFFF
##904CD21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#246ECF
Tritanopia (blue-blind)
#846988
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904cd2;
/* rgb */ color: rgb(144, 76, 210);
/* oklch */ color: oklch(56.3% 0.200 304.0);
Tailwind
colors: {
  custom: {
    50: '#b582e1',
    500: '#904cd2',
    950: '#000000',
  },
}
SCSS
$custom: #904cd2;
$custom-light: #b582e1;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd2",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 270.448,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.19952,
    "h": 304
  },
  "luminance": 0.15751
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #904CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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