#904CD1#904CD1

#904CD1 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.3% C 0.198 H 304.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#904CD1
RGBrgb(144, 76, 209)
HSLhsl(271, 59%, 56%)
HSVhsv(271, 64%, 82%)
CMYKcmyk(31.1%, 63.6%, 0%, 18%)
CIE-LABlab(46.58, 53.12, -57.87)
CIE-LCHlch(46.58, 78.55, 312.55°)
OKLaboklab(56.25% 0.1116 -0.164)
OKLCHoklch(56.25% 0.198 304.2)
XYZxyz(25.5921, 15.7017, 61.9917)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD1 #8DD14C
analogous
#4D4CD1 #904CD1 #D14CCF
triadic
#904CD1 #D1904C #4CD190
tetradic
#904CD1 #D14D4C #8DD14C #4CCFD1
square
#904CD1 #D14D4C #8DD14C #4CCFD1
split-complementary
#904CD1 #CFD14C #4CD14D
monochromatic
#522181 #712EB2 #904CD1 #AE7DDE #CCADEA

Accessibility & contrast

On white

5.07
#904CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#904CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD1#FFFFFF#000000##FFFFFF
##904CD11.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD5
Deuteranopia (green-blind)
#266ECE
Tritanopia (blue-blind)
#846888
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904cd1;
/* rgb */ color: rgb(144, 76, 209);
/* oklch */ color: oklch(56.3% 0.198 304.2);
Tailwind
colors: {
  custom: {
    50: '#b582e0',
    500: '#904cd1',
    950: '#000000',
  },
}
SCSS
$custom: #904cd1;
$custom-light: #b582e0;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd1",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 270.677,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56253,
    "c": 0.19842,
    "h": 304.2
  },
  "luminance": 0.15702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #904CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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