#904CD3#904CD3

#904CD3 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.4% C 0.201 H 303.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#904CD3
RGBrgb(144, 76, 211)
HSLhsl(270, 61%, 56%)
HSVhsv(270, 64%, 83%)
CMYKcmyk(31.8%, 64%, 0%, 17.3%)
CIE-LABlab(46.71, 53.60, -58.80)
CIE-LCHlch(46.71, 79.56, 312.35°)
OKLaboklab(56.39% 0.1115 -0.1668)
OKLCHoklch(56.39% 0.201 303.8)
XYZxyz(25.8412, 15.8014, 63.3040)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CD3 #8FD34C
analogous
#4D4CD3 #904CD3 #D34CD3
triadic
#904CD3 #D3904C #4CD390
tetradic
#904CD3 #D34D4C #8FD34C #4CD3D3
square
#904CD3 #D34D4C #8FD34C #4CD3D3
split-complementary
#904CD3 #D3D34C #4CD34D
monochromatic
#532084 #712DB5 #904CD3 #AE7DDF #CDAEEB

Accessibility & contrast

On white

5.05
#904CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#904CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CD3
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CD3#FFFFFF#000000##FFFFFF
##904CD31.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#226FD0
Tritanopia (blue-blind)
#836989
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904cd3;
/* rgb */ color: rgb(144, 76, 211);
/* oklch */ color: oklch(56.4% 0.201 303.8);
Tailwind
colors: {
  custom: {
    50: '#b582e1',
    500: '#904cd3',
    950: '#000000',
  },
}
SCSS
$custom: #904cd3;
$custom-light: #b582e1;
$custom-dark: #000000;
JSON
{
  "hex": "#904cd3",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 270.222,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56391,
    "c": 0.20061,
    "h": 303.8
  },
  "luminance": 0.15801
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #904CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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