#904FE6#904FE6

#904FE6 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.1% C 0.218 H 299.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#904FE6
RGBrgb(144, 79, 230)
HSLhsl(266, 75%, 61%)
HSVhsv(266, 66%, 90%)
CMYKcmyk(37.4%, 65.7%, 0%, 9.8%)
CIE-LABlab(48.55, 56.71, -66.63)
CIE-LCHlch(48.55, 87.50, 310.40°)
OKLaboklab(58.13% 0.1064 -0.1898)
OKLCHoklch(58.13% 0.218 299.3)
XYZxyz(28.5769, 17.2341, 76.6685)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FE6 #A5E64F
analogous
#4F59E6 #904FE6 #DB4FE6
triadic
#904FE6 #E6904F #4FE690
tetradic
#904FE6 #E64F59 #A5E64F #4FE6DB
square
#904FE6 #E64F59 #A5E64F #4FE6DB
split-complementary
#904FE6 #E6DB4F #59E64F
monochromatic
#5417A3 #6F1FD9 #904FE6 #B285EE #D4BAF5

Accessibility & contrast

On white

4.72
#904FE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#904FE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FE6
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FE6#FFFFFF#000000##FFFFFF
##904FE61.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#7C7294
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #904fe6;
/* rgb */ color: rgb(144, 79, 230);
/* oklch */ color: oklch(58.1% 0.218 299.3);
Tailwind
colors: {
  custom: {
    50: '#b684ef',
    500: '#904fe6',
    950: '#000000',
  },
}
SCSS
$custom: #904fe6;
$custom-light: #b684ef;
$custom-dark: #000000;
JSON
{
  "hex": "#904fe6",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 230
  },
  "hsl": {
    "h": 265.828,
    "s": 75.124,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58127,
    "c": 0.21759,
    "h": 299.3
  },
  "luminance": 0.17234
}

Semantic roles & 50–950 ramp

primary
#904FE6
secondary
#CCE5AC
accent
#D70E81
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #904FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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