#904CE7#904CE7

#904CE7 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.8% C 0.222 H 299.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#904CE7
RGBrgb(144, 76, 231)
HSLhsl(266, 76%, 60%)
HSVhsv(266, 67%, 91%)
CMYKcmyk(37.7%, 67.1%, 0%, 9.4%)
CIE-LABlab(48.09, 58.43, -67.94)
CIE-LCHlch(48.09, 89.61, 310.69°)
OKLaboklab(57.82% 0.1094 -0.1937)
OKLCHoklch(57.82% 0.222 299.4)
XYZxyz(28.5063, 16.8674, 77.3397)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CE7 #A3E74C
analogous
#4C55E7 #904CE7 #DE4CE7
triadic
#904CE7 #E7904C #4CE790
tetradic
#904CE7 #E74C55 #A3E74C #4CE7DE
square
#904CE7 #E74C55 #A3E74C #4CE7DE
split-complementary
#904CE7 #E7DE4C #55E74C
monochromatic
#5416A3 #6F1DD9 #904CE7 #B182EE #D3B8F5

Accessibility & contrast

On white

4.80
#904CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#904CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CE7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CE7#FFFFFF#000000##FFFFFF
##904CE71.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#7C7094
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #904ce7;
/* rgb */ color: rgb(144, 76, 231);
/* oklch */ color: oklch(57.8% 0.222 299.4);
Tailwind
colors: {
  custom: {
    50: '#b783f0',
    500: '#904ce7',
    950: '#000000',
  },
}
SCSS
$custom: #904ce7;
$custom-light: #b783f0;
$custom-dark: #000000;
JSON
{
  "hex": "#904ce7",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 231
  },
  "hsl": {
    "h": 266.323,
    "s": 76.355,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57819,
    "c": 0.22241,
    "h": 299.4
  },
  "luminance": 0.16868
}

Semantic roles & 50–950 ramp

primary
#904CE7
secondary
#CBE5AA
accent
#D90D7F
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #904CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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