#904AE2#904AE2

#904AE2 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.2% C 0.219 H 300.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#904AE2
RGBrgb(144, 74, 226)
HSLhsl(268, 72%, 59%)
HSVhsv(268, 67%, 89%)
CMYKcmyk(36.3%, 67.3%, 0%, 11.4%)
CIE-LABlab(47.39, 58.17, -66.26)
CIE-LCHlch(47.39, 88.17, 311.28°)
OKLaboklab(57.2% 0.1121 -0.1887)
OKLCHoklch(57.2% 0.219 300.7)
XYZxyz(27.6745, 16.3176, 73.6284)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904AE2 #9CE24A
analogous
#4A50E2 #904AE2 #DC4AE2
triadic
#904AE2 #E2904A #4AE290
tetradic
#904AE2 #E24A50 #9CE24A #4AE2DC
square
#904AE2 #E24A50 #9CE24A #4AE2DC
split-complementary
#904AE2 #E2DC4A #50E24A
monochromatic
#541999 #7121CE #904AE2 #B07FEA #D1B3F3

Accessibility & contrast

On white

4.93
#904AE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#904AE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904AE2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904AE2#FFFFFF#000000##FFFFFF
##904AE21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#7E6D90
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904ae2;
/* rgb */ color: rgb(144, 74, 226);
/* oklch */ color: oklch(57.2% 0.219 300.7);
Tailwind
colors: {
  custom: {
    50: '#b681ec',
    500: '#904ae2',
    950: '#000000',
  },
}
SCSS
$custom: #904ae2;
$custom-light: #b681ec;
$custom-dark: #000000;
JSON
{
  "hex": "#904ae2",
  "rgb": {
    "r": 144,
    "g": 74,
    "b": 226
  },
  "hsl": {
    "h": 267.632,
    "s": 72.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57202,
    "c": 0.21947,
    "h": 300.7
  },
  "luminance": 0.16318
}

Semantic roles & 50–950 ramp

primary
#904AE2
secondary
#C6E2A6
accent
#EF399B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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