#904FE1#904FE1

#904FE1 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.8% C 0.212 H 300.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#904FE1
RGBrgb(144, 79, 225)
HSLhsl(267, 71%, 60%)
HSVhsv(267, 65%, 88%)
CMYKcmyk(36%, 64.9%, 0%, 11.8%)
CIE-LABlab(48.21, 55.49, -64.36)
CIE-LCHlch(48.21, 84.98, 310.76°)
OKLaboklab(57.77% 0.1069 -0.1832)
OKLCHoklch(57.77% 0.212 300.3)
XYZxyz(27.8849, 16.9573, 73.0236)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FE1 #A0E14F
analogous
#4F57E1 #904FE1 #D94FE1
triadic
#904FE1 #E1904F #4FE190
tetradic
#904FE1 #E14F57 #A0E14F #4FE1D9
square
#904FE1 #E14F57 #A0E14F #4FE1D9
split-complementary
#904FE1 #E1D94F #57E14F
monochromatic
#541A9B #7023CF #904FE1 #B183EA #D2B8F3

Accessibility & contrast

On white

4.78
#904FE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#904FE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FE1
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FE1#FFFFFF#000000##FFFFFF
##904FE11.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E5
Deuteranopia (green-blind)
#0071DE
Tritanopia (blue-blind)
#7E7091
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #904fe1;
/* rgb */ color: rgb(144, 79, 225);
/* oklch */ color: oklch(57.8% 0.212 300.3);
Tailwind
colors: {
  custom: {
    50: '#b684eb',
    500: '#904fe1',
    950: '#000000',
  },
}
SCSS
$custom: #904fe1;
$custom-light: #b684eb;
$custom-dark: #000000;
JSON
{
  "hex": "#904fe1",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 225
  },
  "hsl": {
    "h": 266.712,
    "s": 70.874,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57767,
    "c": 0.21208,
    "h": 300.3
  },
  "luminance": 0.16957
}

Semantic roles & 50–950 ramp

primary
#904FE1
secondary
#C9E2AA
accent
#EE3A9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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