#904EA2#904EA2

#904EA2 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 53.6% C 0.144 H 318.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#904EA2
RGBrgb(144, 78, 162)
HSLhsl(287, 35%, 47%)
HSVhsv(287, 52%, 64%)
CMYKcmyk(11.1%, 51.9%, 0%, 36.5%)
CIE-LABlab(44.22, 41.50, -34.20)
CIE-LCHlch(44.22, 53.78, 320.51°)
OKLaboklab(53.64% 0.108 -0.0949)
OKLCHoklch(53.64% 0.144 318.7)
XYZxyz(20.7467, 13.9875, 35.7824)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904EA2 #60A24E
analogous
#664EA2 #904EA2 #A24E8A
triadic
#904EA2 #A2904E #4EA290
tetradic
#904EA2 #A2664E #60A24E #4E8AA2
square
#904EA2 #A2664E #60A24E #4E8AA2
split-complementary
#904EA2 #8AA24E #4EA266
monochromatic
#47264F #6B3A79 #904EA2 #AB72BB #C49BCF

Accessibility & contrast

On white

5.53
#904EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#904EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904EA2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904EA2#FFFFFF#000000##FFFFFF
##904EA21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E64A5
Deuteranopia (green-blind)
#536BA0
Tritanopia (blue-blind)
#905A71
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #904ea2;
/* rgb */ color: rgb(144, 78, 162);
/* oklch */ color: oklch(53.6% 0.144 318.7);
Tailwind
colors: {
  custom: {
    50: '#b282be',
    500: '#904ea2',
    950: '#000000',
  },
}
SCSS
$custom: #904ea2;
$custom-light: #b282be;
$custom-dark: #000000;
JSON
{
  "hex": "#904ea2",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 287.143,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53639,
    "c": 0.14377,
    "h": 318.7
  },
  "luminance": 0.13987
}

Semantic roles & 50–950 ramp

primary
#904EA2
secondary
#99BC90
accent
#CB5D74
background
#FBF8FB
surface
#F6EFF7
border
#D0CAD0
text
#110B12
muted
#807C81

Preview Lab

Preview with #904EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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