#904FAC#904FAC

#904FAC is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.3% C 0.153 H 314.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#904FAC
RGBrgb(144, 79, 172)
HSLhsl(282, 37%, 49%)
HSVhsv(282, 54%, 67%)
CMYKcmyk(16.3%, 54.1%, 0%, 32.5%)
CIE-LABlab(44.94, 43.11, -38.97)
CIE-LCHlch(44.94, 58.11, 317.89°)
OKLaboklab(54.35% 0.1076 -0.1087)
OKLCHoklch(54.35% 0.153 314.7)
XYZxyz(21.7428, 14.5004, 40.6752)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FAC #6BAC4F
analogous
#614FAC #904FAC #AC4F9A
triadic
#904FAC #AC904F #4FAC90
tetradic
#904FAC #AC614F #6BAC4F #4F9AAC
square
#904FAC #AC614F #6BAC4F #4F9AAC
split-complementary
#904FAC #9AAC4F #4FAC61
monochromatic
#4A2858 #6D3C82 #904FAC #AB77C1 #C5A1D4

Accessibility & contrast

On white

5.38
#904FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#904FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FAC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FAC#FFFFFF#000000##FFFFFF
##904FAC1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3967AF
Deuteranopia (green-blind)
#4E6CAA
Tritanopia (blue-blind)
#8E5E76
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #904fac;
/* rgb */ color: rgb(144, 79, 172);
/* oklch */ color: oklch(54.3% 0.153 314.7);
Tailwind
colors: {
  custom: {
    50: '#b383c5',
    500: '#904fac',
    950: '#000000',
  },
}
SCSS
$custom: #904fac;
$custom-light: #b383c5;
$custom-dark: #000000;
JSON
{
  "hex": "#904fac",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 281.935,
    "s": 37.052,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54346,
    "c": 0.15301,
    "h": 314.7
  },
  "luminance": 0.145
}

Semantic roles & 50–950 ramp

primary
#904FAC
secondary
#A3C196
accent
#CD5B7D
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #904FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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