#904FBB#904FBB

#904FBB is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.170 H 309.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#904FBB
RGBrgb(144, 79, 187)
HSLhsl(276, 44%, 52%)
HSVhsv(276, 58%, 73%)
CMYKcmyk(23%, 57.8%, 0%, 26.7%)
CIE-LABlab(45.78, 46.46, -46.42)
CIE-LCHlch(45.78, 65.68, 315.02°)
OKLaboklab(55.24% 0.1085 -0.1305)
OKLCHoklch(55.24% 0.17 309.7)
XYZxyz(23.2655, 15.1095, 48.6949)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FBB #7ABB4F
analogous
#5A4FBB #904FBB #BB4FB0
triadic
#904FBB #BB904F #4FBB90
tetradic
#904FBB #BB5A4F #7ABB4F #4FB0BB
square
#904FBB #BB5A4F #7ABB4F #4FB0BB
split-complementary
#904FBB #B0BB4F #4FBB5A
monochromatic
#4E2868 #703994 #904FBB #AC7BCC #C8A7DD

Accessibility & contrast

On white

5.22
#904FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#904FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FBB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FBB#FFFFFF#000000##FFFFFF
##904FBB1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6ABE
Deuteranopia (green-blind)
#436DB8
Tritanopia (blue-blind)
#8A637D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #904fbb;
/* rgb */ color: rgb(144, 79, 187);
/* oklch */ color: oklch(55.2% 0.170 309.7);
Tailwind
colors: {
  custom: {
    50: '#b383d0',
    500: '#904fbb',
    950: '#000000',
  },
}
SCSS
$custom: #904fbb;
$custom-light: #b383d0;
$custom-dark: #000000;
JSON
{
  "hex": "#904fbb",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 276.111,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55236,
    "c": 0.16969,
    "h": 309.7
  },
  "luminance": 0.15109
}

Semantic roles & 50–950 ramp

primary
#904FBB
secondary
#AECA9B
accent
#D45487
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #904FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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