#904CD0#904CD0

#904CD0 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.2% C 0.197 H 304.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#904CD0
RGBrgb(144, 76, 208)
HSLhsl(271, 58%, 56%)
HSVhsv(271, 63%, 82%)
CMYKcmyk(30.8%, 63.5%, 0%, 18.4%)
CIE-LABlab(46.52, 52.89, -57.40)
CIE-LCHlch(46.52, 78.05, 312.66°)
OKLaboklab(56.18% 0.1117 -0.1627)
OKLCHoklch(56.18% 0.197 304.5)
XYZxyz(25.4687, 15.6524, 61.3417)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD0 #8CD04C
analogous
#4E4CD0 #904CD0 #D04CCE
triadic
#904CD0 #D0904C #4CD090
tetradic
#904CD0 #D04E4C #8CD04C #4CCED0
square
#904CD0 #D04E4C #8CD04C #4CCED0
split-complementary
#904CD0 #CED04C #4CD04E
monochromatic
#522280 #712EB0 #904CD0 #AE7CDD #CCADE9

Accessibility & contrast

On white

5.08
#904CD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#904CD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD0
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD0#FFFFFF#000000##FFFFFF
##904CD01.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD4
Deuteranopia (green-blind)
#286ECD
Tritanopia (blue-blind)
#846887
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904cd0;
/* rgb */ color: rgb(144, 76, 208);
/* oklch */ color: oklch(56.2% 0.197 304.5);
Tailwind
colors: {
  custom: {
    50: '#b582df',
    500: '#904cd0',
    950: '#000000',
  },
}
SCSS
$custom: #904cd0;
$custom-light: #b582df;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd0",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 208
  },
  "hsl": {
    "h": 270.909,
    "s": 58.407,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56185,
    "c": 0.19732,
    "h": 304.5
  },
  "luminance": 0.15652
}

Semantic roles & 50–950 ramp

primary
#904CD0
secondary
#BBD7A0
accent
#E24692
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904CD0

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

Preview Lab → · Contrast checker → · Palette generator →

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