#904ABA#904ABA

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

Color values

HEX#904ABA
RGBrgb(144, 74, 186)
HSLhsl(278, 45%, 51%)
HSVhsv(278, 60%, 73%)
CMYKcmyk(22.6%, 60.2%, 0%, 27.1%)
CIE-LABlab(44.76, 48.82, -47.47)
CIE-LCHlch(44.76, 68.09, 315.80°)
OKLaboklab(54.47% 0.1149 -0.1335)
OKLCHoklch(54.47% 0.176 310.7)
XYZxyz(22.8116, 14.3725, 48.0173)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904ABA #74BA4A
analogous
#584ABA #904ABA #BA4AAC
triadic
#904ABA #BA904A #4ABA90
tetradic
#904ABA #BA584A #74BA4A #4AACBA
square
#904ABA #BA584A #74BA4A #4AACBA
split-complementary
#904ABA #ACBA4A #4ABA58
monochromatic
#4D2664 #6F3790 #904ABA #AB76CB #C6A3DC

Accessibility & contrast

On white

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

On black

3.87
#904ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##904ABA#FFFFFF#000000##FFFFFF
##904ABA1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#3F6BB7
Tritanopia (blue-blind)
#8B5F7B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #904aba;
/* rgb */ color: rgb(144, 74, 186);
/* oklch */ color: oklch(54.5% 0.176 310.7);
Tailwind
colors: {
  custom: {
    50: '#b480cf',
    500: '#904aba',
    950: '#000000',
  },
}
SCSS
$custom: #904aba;
$custom-light: #b480cf;
$custom-dark: #000000;
JSON
{
  "hex": "#904aba",
  "rgb": {
    "r": 144,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 277.5,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54472,
    "c": 0.17613,
    "h": 310.7
  },
  "luminance": 0.14372
}

Semantic roles & 50–950 ramp

primary
#904ABA
secondary
#AAC997
accent
#D55384
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #904ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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