#904CE5#904CE5

#904CE5 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.7% C 0.220 H 299.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#904CE5
RGBrgb(144, 76, 229)
HSLhsl(267, 75%, 60%)
HSVhsv(267, 67%, 90%)
CMYKcmyk(37.1%, 66.8%, 0%, 10.2%)
CIE-LABlab(47.95, 57.94, -67.04)
CIE-LCHlch(47.95, 88.61, 310.83°)
OKLaboklab(57.67% 0.1096 -0.191)
OKLCHoklch(57.67% 0.22 299.8)
XYZxyz(28.2254, 16.7550, 75.8606)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CE5 #A1E54C
analogous
#4C54E5 #904CE5 #DD4CE5
triadic
#904CE5 #E5904C #4CE590
tetradic
#904CE5 #E54C54 #A1E54C #4CE5DD
square
#904CE5 #E54C54 #A1E54C #4CE5DD
split-complementary
#904CE5 #E5DD4C #54E54C
monochromatic
#54179F #701FD5 #904CE5 #B181ED #D2B7F5

Accessibility & contrast

On white

4.83
#904CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#904CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CE5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CE5#FFFFFF#000000##FFFFFF
##904CE51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#7D7092
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #904ce5;
/* rgb */ color: rgb(144, 76, 229);
/* oklch */ color: oklch(57.7% 0.220 299.8);
Tailwind
colors: {
  custom: {
    50: '#b682ee',
    500: '#904ce5',
    950: '#000000',
  },
}
SCSS
$custom: #904ce5;
$custom-light: #b682ee;
$custom-dark: #000000;
JSON
{
  "hex": "#904ce5",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 266.667,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57672,
    "c": 0.22024,
    "h": 299.8
  },
  "luminance": 0.16755
}

Semantic roles & 50–950 ramp

primary
#904CE5
secondary
#CAE4A9
accent
#F1379E
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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