#904FA2#904FA2

#904FA2 is a mid, vivid purple. Relative luminance 0.141; OKLCH L 53.8% C 0.142 H 318.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#904FA2
RGBrgb(144, 79, 162)
HSLhsl(287, 34%, 47%)
HSVhsv(287, 51%, 64%)
CMYKcmyk(11.1%, 51.2%, 0%, 36.5%)
CIE-LABlab(44.42, 40.97, -33.88)
CIE-LCHlch(44.42, 53.16, 320.41°)
OKLaboklab(53.79% 0.1066 -0.094)
OKLCHoklch(53.79% 0.142 318.6)
XYZxyz(20.8183, 14.1306, 35.8063)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FA2 #61A24F
analogous
#674FA2 #904FA2 #A24F8B
triadic
#904FA2 #A2904F #4FA290
tetradic
#904FA2 #A2674F #61A24F #4F8BA2
square
#904FA2 #A2674F #61A24F #4F8BA2
split-complementary
#904FA2 #8BA24F #4FA267
monochromatic
#472750 #6B3B79 #904FA2 #AB73BB #C49CCF

Accessibility & contrast

On white

5.49
#904FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#904FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FA2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FA2#FFFFFF#000000##FFFFFF
##904FA21.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#536BA0
Tritanopia (blue-blind)
#905B71
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #904fa2;
/* rgb */ color: rgb(144, 79, 162);
/* oklch */ color: oklch(53.8% 0.142 318.6);
Tailwind
colors: {
  custom: {
    50: '#b283be',
    500: '#904fa2',
    950: '#000000',
  },
}
SCSS
$custom: #904fa2;
$custom-light: #b283be;
$custom-dark: #000000;
JSON
{
  "hex": "#904fa2",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 286.988,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5379,
    "c": 0.14208,
    "h": 318.6
  },
  "luminance": 0.1413
}

Semantic roles & 50–950 ramp

primary
#904FA2
secondary
#9ABC91
accent
#CB5D75
background
#FBF8FB
surface
#F6EFF7
border
#D0CAD0
text
#110B12
muted
#807C81

Preview Lab

Preview with #904FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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