#904BB9#904BB9

#904BB9 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.174 H 310.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#904BB9
RGBrgb(144, 75, 185)
HSLhsl(278, 44%, 51%)
HSVhsv(278, 59%, 73%)
CMYKcmyk(22.2%, 59.5%, 0%, 27.5%)
CIE-LABlab(44.89, 48.08, -46.68)
CIE-LCHlch(44.89, 67.01, 315.85°)
OKLaboklab(54.55% 0.1136 -0.1312)
OKLCHoklch(54.55% 0.174 310.9)
XYZxyz(22.7730, 14.4647, 47.4818)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BB9 #74B94B
analogous
#594BB9 #904BB9 #B94BAB
triadic
#904BB9 #B9904B #4BB990
tetradic
#904BB9 #B9594B #74B94B #4BABB9
square
#904BB9 #B9594B #74B94B #4BABB9
split-complementary
#904BB9 #ABB94B #4BB959
monochromatic
#4D2763 #6F388F #904BB9 #AB77CA #C6A3DB

Accessibility & contrast

On white

5.39
#904BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#904BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BB9
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BB9#FFFFFF#000000##FFFFFF
##904BB91.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2367BD
Deuteranopia (green-blind)
#416BB6
Tritanopia (blue-blind)
#8B5F7B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #904bb9;
/* rgb */ color: rgb(144, 75, 185);
/* oklch */ color: oklch(54.5% 0.174 310.9);
Tailwind
colors: {
  custom: {
    50: '#b381ce',
    500: '#904bb9',
    950: '#000000',
  },
}
SCSS
$custom: #904bb9;
$custom-light: #b381ce;
$custom-dark: #000000;
JSON
{
  "hex": "#904bb9",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 277.636,
    "s": 44,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54547,
    "c": 0.17356,
    "h": 310.9
  },
  "luminance": 0.14464
}

Semantic roles & 50–950 ramp

primary
#904BB9
secondary
#AAC898
accent
#D45484
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #904BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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