#904CB2#904CB2

#904CB2 is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.3% C 0.164 H 313.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#904CB2
RGBrgb(144, 76, 178)
HSLhsl(280, 40%, 50%)
HSVhsv(280, 57%, 70%)
CMYKcmyk(19.1%, 57.3%, 0%, 30.2%)
CIE-LABlab(44.68, 46.01, -42.92)
CIE-LCHlch(44.68, 62.92, 316.99°)
OKLaboklab(54.26% 0.1121 -0.1202)
OKLCHoklch(54.26% 0.164 313)
XYZxyz(22.1205, 14.3131, 43.7083)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CB2 #6EB24C
analogous
#5D4CB2 #904CB2 #B24CA1
triadic
#904CB2 #B2904C #4CB290
tetradic
#904CB2 #B25D4C #6EB24C #4CA1B2
square
#904CB2 #B25D4C #6EB24C #4CA1B2
split-complementary
#904CB2 #A1B24C #4CB25D
monochromatic
#4B275C #6D3A87 #904CB2 #AB76C5 #C5A1D7

Accessibility & contrast

On white

5.44
#904CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#904CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CB2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CB2#FFFFFF#000000##FFFFFF
##904CB21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B5
Deuteranopia (green-blind)
#476BAF
Tritanopia (blue-blind)
#8D5E78
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #904cb2;
/* rgb */ color: rgb(144, 76, 178);
/* oklch */ color: oklch(54.3% 0.164 313.0);
Tailwind
colors: {
  custom: {
    50: '#b381c9',
    500: '#904cb2',
    950: '#000000',
  },
}
SCSS
$custom: #904cb2;
$custom-light: #b381c9;
$custom-dark: #000000;
JSON
{
  "hex": "#904cb2",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 280,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5426,
    "c": 0.16438,
    "h": 313
  },
  "luminance": 0.14313
}

Semantic roles & 50–950 ramp

primary
#904CB2
secondary
#A5C496
accent
#D05880
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #904CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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