#904DC7#904DC7

#904DC7 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.186 H 306.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#904DC7
RGBrgb(144, 77, 199)
HSLhsl(273, 52%, 54%)
HSVhsv(273, 61%, 78%)
CMYKcmyk(27.6%, 61.3%, 0%, 22%)
CIE-LABlab(46.12, 50.27, -52.84)
CIE-LCHlch(46.12, 72.93, 313.57°)
OKLaboklab(55.72% 0.1109 -0.1493)
OKLCHoklch(55.72% 0.186 306.6)
XYZxyz(24.4621, 15.3608, 55.6980)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DC7 #84C74D
analogous
#534DC7 #904DC7 #C74DC1
triadic
#904DC7 #C7904D #4DC790
tetradic
#904DC7 #C7534D #84C74D #4DC1C7
square
#904DC7 #C7534D #84C74D #4DC1C7
split-complementary
#904DC7 #C1C74D #4DC753
monochromatic
#512575 #7133A3 #904DC7 #AD7CD6 #CAAAE4

Accessibility & contrast

On white

5.16
#904DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#904DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DC7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DC7#FFFFFF#000000##FFFFFF
##904DC71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6BCB
Deuteranopia (green-blind)
#356EC4
Tritanopia (blue-blind)
#876683
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #904dc7;
/* rgb */ color: rgb(144, 77, 199);
/* oklch */ color: oklch(55.7% 0.186 306.6);
Tailwind
colors: {
  custom: {
    50: '#b482d9',
    500: '#904dc7',
    950: '#000000',
  },
}
SCSS
$custom: #904dc7;
$custom-light: #b482d9;
$custom-dark: #000000;
JSON
{
  "hex": "#904dc7",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 272.951,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55718,
    "c": 0.18601,
    "h": 306.6
  },
  "luminance": 0.15361
}

Semantic roles & 50–950 ramp

primary
#904DC7
secondary
#B5D29E
accent
#DC4C8D
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #904DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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