#904FEB#904FEB

#904FEB is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.5% C 0.223 H 298.3°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#904FEB
RGBrgb(144, 79, 235)
HSLhsl(265, 80%, 62%)
HSVhsv(265, 66%, 92%)
CMYKcmyk(38.7%, 66.4%, 0%, 7.8%)
CIE-LABlab(48.91, 57.95, -68.88)
CIE-LCHlch(48.91, 90.01, 310.08°)
OKLaboklab(58.49% 0.1058 -0.1964)
OKLCHoklch(58.49% 0.223 298.3)
XYZxyz(29.2892, 17.5190, 80.4195)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FEB #AAEB4F
analogous
#4F5CEB #904FEB #DE4FEB
triadic
#904FEB #EB904F #4FEB90
tetradic
#904FEB #EB4F5C #AAEB4F #4FEBDE
square
#904FEB #EB4F5C #AAEB4F #4FEBDE
split-complementary
#904FEB #EBDE4F #5CEB4F
monochromatic
#5314AC #6E1AE3 #904FEB #B386F1 #D5BDF7

Accessibility & contrast

On white

4.66
#904FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#904FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #904FEB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FEB#FFFFFF#000000##FFFFFF
##904FEB1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#7A7497
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #904feb;
/* rgb */ color: rgb(144, 79, 235);
/* oklch */ color: oklch(58.5% 0.223 298.3);
Tailwind
colors: {
  custom: {
    50: '#b784f2',
    500: '#904feb',
    950: '#000000',
  },
}
SCSS
$custom: #904feb;
$custom-light: #b784f2;
$custom-dark: #000000;
JSON
{
  "hex": "#904feb",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 265,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58493,
    "c": 0.22309,
    "h": 298.3
  },
  "luminance": 0.17519
}

Semantic roles & 50–950 ramp

primary
#904FEB
secondary
#D0E8AE
accent
#DC0A84
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #904FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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