#904FB1#904FB1

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

Color values

HEX#904FB1
RGBrgb(144, 79, 177)
HSLhsl(280, 39%, 50%)
HSVhsv(280, 55%, 69%)
CMYKcmyk(18.6%, 55.4%, 0%, 30.6%)
CIE-LABlab(45.22, 44.21, -41.48)
CIE-LCHlch(45.22, 60.62, 316.83°)
OKLaboklab(54.64% 0.108 -0.116)
OKLCHoklch(54.64% 0.159 312.9)
XYZxyz(22.2320, 14.6961, 43.2519)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FB1 #70B14F
analogous
#5F4FB1 #904FB1 #B14FA1
triadic
#904FB1 #B1904F #4FB190
tetradic
#904FB1 #B15F4F #70B14F #4FA1B1
square
#904FB1 #B15F4F #70B14F #4FA1B1
split-complementary
#904FB1 #A1B14F #4FB15F
monochromatic
#4B295D #6E3C87 #904FB1 #AB79C4 #C5A4D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##904FB1#FFFFFF#000000##FFFFFF
##904FB11.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)
#3468B4
Deuteranopia (green-blind)
#4B6DAF
Tritanopia (blue-blind)
#8D6078
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #904fb1;
/* rgb */ color: rgb(144, 79, 177);
/* oklch */ color: oklch(54.6% 0.159 312.9);
Tailwind
colors: {
  custom: {
    50: '#b383c9',
    500: '#904fb1',
    950: '#000000',
  },
}
SCSS
$custom: #904fb1;
$custom-light: #b383c9;
$custom-dark: #000000;
JSON
{
  "hex": "#904fb1",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 279.796,
    "s": 38.583,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54635,
    "c": 0.15854,
    "h": 312.9
  },
  "luminance": 0.14696
}

Semantic roles & 50–950 ramp

primary
#904FB1
secondary
#A7C498
accent
#CF5981
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #904FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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