#904AEA#904AEA

#904AEA is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.8% C 0.228 H 299.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#904AEA
RGBrgb(144, 74, 234)
HSLhsl(266, 79%, 60%)
HSVhsv(266, 68%, 92%)
CMYKcmyk(38.5%, 68.4%, 0%, 8.2%)
CIE-LABlab(47.97, 60.11, -69.84)
CIE-LCHlch(47.97, 92.15, 310.72°)
OKLaboklab(57.8% 0.1109 -0.1992)
OKLCHoklch(57.8% 0.228 299.1)
XYZxyz(28.7979, 16.7670, 79.5451)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904AEA #A4EA4A
analogous
#4A54EA #904AEA #E04AEA
triadic
#904AEA #EA904A #4AEA90
tetradic
#904AEA #EA4A54 #A4EA4A #4AEAE0
square
#904AEA #EA4A54 #A4EA4A #4AEAE0
split-complementary
#904AEA #EAE04A #54EA4A
monochromatic
#5413A6 #6F1ADD #904AEA #B281F0 #D3B8F7

Accessibility & contrast

On white

4.82
#904AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#904AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904AEA
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904AEA#FFFFFF#000000##FFFFFF
##904AEA1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#0070E7
Tritanopia (blue-blind)
#7B7095
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #904aea;
/* rgb */ color: rgb(144, 74, 234);
/* oklch */ color: oklch(57.8% 0.228 299.1);
Tailwind
colors: {
  custom: {
    50: '#b781f2',
    500: '#904aea',
    950: '#000000',
  },
}
SCSS
$custom: #904aea;
$custom-light: #b781f2;
$custom-dark: #000000;
JSON
{
  "hex": "#904aea",
  "rgb": {
    "r": 144,
    "g": 74,
    "b": 234
  },
  "hsl": {
    "h": 266.25,
    "s": 79.208,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57796,
    "c": 0.22804,
    "h": 299.1
  },
  "luminance": 0.16767
}

Semantic roles & 50–950 ramp

primary
#904AEA
secondary
#CCE6A9
accent
#DC0A80
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #904AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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