#904BB2#904BB2

#904BB2 is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.1% C 0.166 H 313.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#904BB2
RGBrgb(144, 75, 178)
HSLhsl(280, 41%, 50%)
HSVhsv(280, 58%, 70%)
CMYKcmyk(19.1%, 57.9%, 0%, 30.2%)
CIE-LABlab(44.48, 46.53, -43.23)
CIE-LCHlch(44.48, 63.51, 317.11°)
OKLaboklab(54.12% 0.1134 -0.1211)
OKLCHoklch(54.12% 0.166 313.1)
XYZxyz(22.0522, 14.1764, 43.6855)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BB2 #6DB24B
analogous
#5D4BB2 #904BB2 #B24BA1
triadic
#904BB2 #B2904B #4BB290
tetradic
#904BB2 #B25D4B #6DB24B #4BA1B2
square
#904BB2 #B25D4B #6DB24B #4BA1B2
split-complementary
#904BB2 #A1B24B #4BB25D
monochromatic
#4A275C #6D3987 #904BB2 #AB75C5 #C5A0D7

Accessibility & contrast

On white

5.48
#904BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#904BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BB2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BB2#FFFFFF#000000##FFFFFF
##904BB21.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B5
Deuteranopia (green-blind)
#466BAF
Tritanopia (blue-blind)
#8D5D77
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #904bb2;
/* rgb */ color: rgb(144, 75, 178);
/* oklch */ color: oklch(54.1% 0.166 313.1);
Tailwind
colors: {
  custom: {
    50: '#b381c9',
    500: '#904bb2',
    950: '#000000',
  },
}
SCSS
$custom: #904bb2;
$custom-light: #b381c9;
$custom-dark: #000000;
JSON
{
  "hex": "#904bb2",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 280.194,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54118,
    "c": 0.16593,
    "h": 313.1
  },
  "luminance": 0.14176
}

Semantic roles & 50–950 ramp

primary
#904BB2
secondary
#A4C495
accent
#D1577F
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #904BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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