#904BAF#904BAF

#904BAF is a mid, vivid purple. Relative luminance 0.141; OKLCH L 53.9% C 0.163 H 314.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#904BAF
RGBrgb(144, 75, 175)
HSLhsl(281, 40%, 49%)
HSVhsv(281, 57%, 69%)
CMYKcmyk(17.7%, 57.1%, 0%, 31.4%)
CIE-LABlab(44.31, 45.87, -41.73)
CIE-LCHlch(44.31, 62.01, 317.70°)
OKLaboklab(53.94% 0.1133 -0.1168)
OKLCHoklch(53.94% 0.163 314.1)
XYZxyz(21.7543, 14.0572, 42.1165)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BAF #6AAF4B
analogous
#5E4BAF #904BAF #AF4B9C
triadic
#904BAF #AF904B #4BAF90
tetradic
#904BAF #AF5E4B #6AAF4B #4B9CAF
square
#904BAF #AF5E4B #6AAF4B #4B9CAF
split-complementary
#904BAF #9CAF4B #4BAF5E
monochromatic
#492659 #6D3984 #904BAF #AB74C3 #C59FD6

Accessibility & contrast

On white

5.51
#904BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#904BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BAF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BAF#FFFFFF#000000##FFFFFF
##904BAF1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#486BAC
Tritanopia (blue-blind)
#8D5C76
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #904baf;
/* rgb */ color: rgb(144, 75, 175);
/* oklch */ color: oklch(53.9% 0.163 314.1);
Tailwind
colors: {
  custom: {
    50: '#b380c7',
    500: '#904baf',
    950: '#000000',
  },
}
SCSS
$custom: #904baf;
$custom-light: #b380c7;
$custom-dark: #000000;
JSON
{
  "hex": "#904baf",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 281.4,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53939,
    "c": 0.16269,
    "h": 314.1
  },
  "luminance": 0.14057
}

Semantic roles & 50–950 ramp

primary
#904BAF
secondary
#A2C293
accent
#D0587D
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #904BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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