#904CBB#904CBB

#904CBB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.174 H 310.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#904CBB
RGBrgb(144, 76, 187)
HSLhsl(277, 45%, 52%)
HSVhsv(277, 59%, 73%)
CMYKcmyk(23%, 59.4%, 0%, 26.7%)
CIE-LABlab(45.20, 48.02, -47.35)
CIE-LCHlch(45.20, 67.44, 315.40°)
OKLaboklab(54.81% 0.1123 -0.1332)
OKLCHoklch(54.81% 0.174 310.1)
XYZxyz(23.0540, 14.6865, 48.6244)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CBB #77BB4C
analogous
#594CBB #904CBB #BB4CAE
triadic
#904CBB #BB904C #4CBB90
tetradic
#904CBB #BB594C #77BB4C #4CAEBB
square
#904CBB #BB594C #77BB4C #4CAEBB
split-complementary
#904CBB #AEBB4C #4CBB59
monochromatic
#4D2766 #6F3892 #904CBB #AC78CC #C7A5DD

Accessibility & contrast

On white

5.33
#904CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#904CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CBB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CBB#FFFFFF#000000##FFFFFF
##904CBB1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#406CB8
Tritanopia (blue-blind)
#8A617C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #904cbb;
/* rgb */ color: rgb(144, 76, 187);
/* oklch */ color: oklch(54.8% 0.174 310.1);
Tailwind
colors: {
  custom: {
    50: '#b481d0',
    500: '#904cbb',
    950: '#000000',
  },
}
SCSS
$custom: #904cbb;
$custom-light: #b481d0;
$custom-dark: #000000;
JSON
{
  "hex": "#904cbb",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 276.757,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54811,
    "c": 0.17424,
    "h": 310.1
  },
  "luminance": 0.14686
}

Semantic roles & 50–950 ramp

primary
#904CBB
secondary
#ACCA99
accent
#D55385
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #904CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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