#904CCE#904CCE

#904CCE is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.0% C 0.195 H 305.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#904CCE
RGBrgb(144, 76, 206)
HSLhsl(271, 57%, 55%)
HSVhsv(271, 63%, 81%)
CMYKcmyk(30.1%, 63.1%, 0%, 19.2%)
CIE-LABlab(46.38, 52.41, -56.46)
CIE-LCHlch(46.38, 77.04, 312.87°)
OKLaboklab(56.05% 0.1118 -0.1599)
OKLCHoklch(56.05% 0.195 305)
XYZxyz(25.2242, 15.5546, 60.0540)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CCE #8ACE4C
analogous
#4F4CCE #904CCE #CE4CCB
triadic
#904CCE #CE904C #4CCE90
tetradic
#904CCE #CE4F4C #8ACE4C #4CCBCE
square
#904CCE #CE4F4C #8ACE4C #4CCBCE
split-complementary
#904CCE #CBCE4C #4CCE4F
monochromatic
#52227D #712FAD #904CCE #AE7CDB #CCACE8

Accessibility & contrast

On white

5.11
#904CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#904CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CCE
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CCE#FFFFFF#000000##FFFFFF
##904CCE1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#2B6ECB
Tritanopia (blue-blind)
#856786
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904cce;
/* rgb */ color: rgb(144, 76, 206);
/* oklch */ color: oklch(56.0% 0.195 305.0);
Tailwind
colors: {
  custom: {
    50: '#b582de',
    500: '#904cce',
    950: '#000000',
  },
}
SCSS
$custom: #904cce;
$custom-light: #b582de;
$custom-dark: #000000;
JSON
{
  "hex": "#904cce",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 206
  },
  "hsl": {
    "h": 271.385,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56049,
    "c": 0.19512,
    "h": 305
  },
  "luminance": 0.15554
}

Semantic roles & 50–950 ramp

primary
#904CCE
secondary
#BAD6A0
accent
#E04890
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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