#904FE4#904FE4

#904FE4 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.0% C 0.215 H 299.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#904FE4
RGBrgb(144, 79, 228)
HSLhsl(266, 73%, 60%)
HSVhsv(266, 65%, 89%)
CMYKcmyk(36.8%, 65.4%, 0%, 10.6%)
CIE-LABlab(48.41, 56.22, -65.73)
CIE-LCHlch(48.41, 86.49, 310.54°)
OKLaboklab(57.98% 0.1066 -0.1872)
OKLCHoklch(57.98% 0.215 299.7)
XYZxyz(28.2977, 17.1224, 75.1978)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FE4 #A3E44F
analogous
#4F59E4 #904FE4 #DA4FE4
triadic
#904FE4 #E4904F #4FE490
tetradic
#904FE4 #E44F59 #A3E44F #4FE4DA
square
#904FE4 #E44F59 #A3E44F #4FE4DA
split-complementary
#904FE4 #E4DA4F #59E44F
monochromatic
#5419A0 #6F21D5 #904FE4 #B184EC #D3B9F4

Accessibility & contrast

On white

4.75
#904FE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#904FE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FE4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FE4#FFFFFF#000000##FFFFFF
##904FE41.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#7D7193
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #904fe4;
/* rgb */ color: rgb(144, 79, 228);
/* oklch */ color: oklch(58.0% 0.215 299.7);
Tailwind
colors: {
  custom: {
    50: '#b684ed',
    500: '#904fe4',
    950: '#000000',
  },
}
SCSS
$custom: #904fe4;
$custom-light: #b684ed;
$custom-dark: #000000;
JSON
{
  "hex": "#904fe4",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 228
  },
  "hsl": {
    "h": 266.174,
    "s": 73.399,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57983,
    "c": 0.21539,
    "h": 299.7
  },
  "luminance": 0.17123
}

Semantic roles & 50–950 ramp

primary
#904FE4
secondary
#CBE4AB
accent
#D6107F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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