#904DCA#904DCA

#904DCA is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.9% C 0.189 H 305.8°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#904DCA
RGBrgb(144, 77, 202)
HSLhsl(272, 54%, 55%)
HSVhsv(272, 62%, 79%)
CMYKcmyk(28.7%, 61.9%, 0%, 20.8%)
CIE-LABlab(46.31, 50.97, -54.27)
CIE-LCHlch(46.31, 74.45, 313.20°)
OKLaboklab(55.92% 0.1108 -0.1535)
OKLCHoklch(55.92% 0.189 305.8)
XYZxyz(24.8139, 15.5015, 57.5505)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DCA #87CA4D
analogous
#514DCA #904DCA #CA4DC6
triadic
#904DCA #CA904D #4DCA90
tetradic
#904DCA #CA514D #87CA4D #4DC6CA
square
#904DCA #CA514D #87CA4D #4DC6CA
split-complementary
#904DCA #C6CA4D #4DCA51
monochromatic
#512479 #7132A8 #904DCA #AD7CD8 #CBABE6

Accessibility & contrast

On white

5.12
#904DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#904DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DCA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DCA#FFFFFF#000000##FFFFFF
##904DCA1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#866784
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904dca;
/* rgb */ color: rgb(144, 77, 202);
/* oklch */ color: oklch(55.9% 0.189 305.8);
Tailwind
colors: {
  custom: {
    50: '#b482db',
    500: '#904dca',
    950: '#000000',
  },
}
SCSS
$custom: #904dca;
$custom-light: #b482db;
$custom-dark: #000000;
JSON
{
  "hex": "#904dca",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 272.16,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55915,
    "c": 0.18933,
    "h": 305.8
  },
  "luminance": 0.15501
}

Semantic roles & 50–950 ramp

primary
#904DCA
secondary
#B8D49F
accent
#DD4A8F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #904DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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