#904DAF#904DAF

#904DAF is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.2% C 0.160 H 313.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#904DAF
RGBrgb(144, 77, 175)
HSLhsl(281, 39%, 49%)
HSVhsv(281, 56%, 69%)
CMYKcmyk(17.7%, 56%, 0%, 31.4%)
CIE-LABlab(44.71, 44.83, -41.11)
CIE-LCHlch(44.71, 60.82, 317.48°)
OKLaboklab(54.23% 0.1106 -0.115)
OKLCHoklch(54.23% 0.16 313.9)
XYZxyz(21.8921, 14.3328, 42.1624)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DAF #6CAF4D
analogous
#5F4DAF #904DAF #AF4D9D
triadic
#904DAF #AF904D #4DAF90
tetradic
#904DAF #AF5F4D #6CAF4D #4D9DAF
square
#904DAF #AF5F4D #6CAF4D #4D9DAF
split-complementary
#904DAF #9DAF4D #4DAF5F
monochromatic
#4A285A #6D3A85 #904DAF #AB76C3 #C5A1D6

Accessibility & contrast

On white

5.43
#904DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#904DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DAF
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DAF#FFFFFF#000000##FFFFFF
##904DAF1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3366B2
Deuteranopia (green-blind)
#4A6BAD
Tritanopia (blue-blind)
#8D5D77
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #904daf;
/* rgb */ color: rgb(144, 77, 175);
/* oklch */ color: oklch(54.2% 0.160 313.9);
Tailwind
colors: {
  custom: {
    50: '#b382c7',
    500: '#904daf',
    950: '#000000',
  },
}
SCSS
$custom: #904daf;
$custom-light: #b382c7;
$custom-dark: #000000;
JSON
{
  "hex": "#904daf",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 281.02,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54226,
    "c": 0.15953,
    "h": 313.9
  },
  "luminance": 0.14332
}

Semantic roles & 50–950 ramp

primary
#904DAF
secondary
#A4C395
accent
#CF597E
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #904DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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