#904CEB#904CEB

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

Color values

HEX#904CEB
RGBrgb(144, 76, 235)
HSLhsl(266, 80%, 61%)
HSVhsv(266, 68%, 92%)
CMYKcmyk(38.7%, 67.7%, 0%, 7.8%)
CIE-LABlab(48.38, 59.40, -69.73)
CIE-LCHlch(48.38, 91.60, 310.43°)
OKLaboklab(58.12% 0.1088 -0.1989)
OKLCHoklch(58.12% 0.227 298.7)
XYZxyz(29.0776, 17.0959, 80.3490)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CEB #A7EB4C
analogous
#4C57EB #904CEB #DF4CEB
triadic
#904CEB #EB904C #4CEB90
tetradic
#904CEB #EB4C57 #A7EB4C #4CEBDF
square
#904CEB #EB4C57 #A7EB4C #4CEBDF
split-complementary
#904CEB #EBDF4C #57EB4C
monochromatic
#5313AA #6E19E1 #904CEB #B283F1 #D4BAF7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##904CEB#FFFFFF#000000##FFFFFF
##904CEB1.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)
#0073F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#7A7296
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #904ceb;
/* rgb */ color: rgb(144, 76, 235);
/* oklch */ color: oklch(58.1% 0.227 298.7);
Tailwind
colors: {
  custom: {
    50: '#b783f2',
    500: '#904ceb',
    950: '#000000',
  },
}
SCSS
$custom: #904ceb;
$custom-light: #b783f2;
$custom-dark: #000000;
JSON
{
  "hex": "#904ceb",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 265.66,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58115,
    "c": 0.22673,
    "h": 298.7
  },
  "luminance": 0.17096
}

Semantic roles & 50–950 ramp

primary
#904CEB
secondary
#CEE7AB
accent
#DC0982
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #904CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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