#904BB7#904BB7

#904BB7 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.171 H 311.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#904BB7
RGBrgb(144, 75, 183)
HSLhsl(278, 43%, 51%)
HSVhsv(278, 59%, 72%)
CMYKcmyk(21.3%, 59%, 0%, 28.2%)
CIE-LABlab(44.77, 47.64, -45.70)
CIE-LCHlch(44.77, 66.01, 316.19°)
OKLaboklab(54.42% 0.1136 -0.1284)
OKLCHoklch(54.42% 0.171 311.5)
XYZxyz(22.5634, 14.3809, 46.3777)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BB7 #72B74B
analogous
#5A4BB7 #904BB7 #B74BA8
triadic
#904BB7 #B7904B #4BB790
tetradic
#904BB7 #B75A4B #72B74B #4BA8B7
square
#904BB7 #B75A4B #72B74B #4BA8B7
split-complementary
#904BB7 #A8B74B #4BB75A
monochromatic
#4C2761 #6E388D #904BB7 #AB77C8 #C6A2DA

Accessibility & contrast

On white

5.42
#904BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#904BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BB7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BB7#FFFFFF#000000##FFFFFF
##904BB71.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2666BA
Deuteranopia (green-blind)
#426BB4
Tritanopia (blue-blind)
#8B5F7A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #904bb7;
/* rgb */ color: rgb(144, 75, 183);
/* oklch */ color: oklch(54.4% 0.171 311.5);
Tailwind
colors: {
  custom: {
    50: '#b381cd',
    500: '#904bb7',
    950: '#000000',
  },
}
SCSS
$custom: #904bb7;
$custom-light: #b381cd;
$custom-dark: #000000;
JSON
{
  "hex": "#904bb7",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 278.333,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54423,
    "c": 0.17138,
    "h": 311.5
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#904BB7
secondary
#A8C797
accent
#D35582
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A13
muted
#807C82

Preview Lab

Preview with #904BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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