#904FC5#904FC5

#904FC5 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.181 H 306.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#904FC5
RGBrgb(144, 79, 197)
HSLhsl(273, 50%, 54%)
HSVhsv(273, 60%, 77%)
CMYKcmyk(26.9%, 59.9%, 0%, 22.7%)
CIE-LABlab(46.38, 48.77, -51.27)
CIE-LCHlch(46.38, 70.76, 313.57°)
OKLaboklab(55.86% 0.1085 -0.1447)
OKLCHoklch(55.86% 0.181 306.9)
XYZxyz(24.3735, 15.5527, 54.5305)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FC5 #84C54F
analogous
#554FC5 #904FC5 #C54FBF
triadic
#904FC5 #C5904F #4FC590
tetradic
#904FC5 #C5554F #84C54F #4FBFC5
square
#904FC5 #C5554F #84C54F #4FBFC5
split-complementary
#904FC5 #BFC54F #4FC555
monochromatic
#512674 #7135A2 #904FC5 #AD7DD4 #CAABE3

Accessibility & contrast

On white

5.11
#904FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#904FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FC5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FC5#FFFFFF#000000##FFFFFF
##904FC51.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6CC9
Deuteranopia (green-blind)
#3A6EC2
Tritanopia (blue-blind)
#886682
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904fc5;
/* rgb */ color: rgb(144, 79, 197);
/* oklch */ color: oklch(55.9% 0.181 306.9);
Tailwind
colors: {
  custom: {
    50: '#b483d7',
    500: '#904fc5',
    950: '#000000',
  },
}
SCSS
$custom: #904fc5;
$custom-light: #b483d7;
$custom-dark: #000000;
JSON
{
  "hex": "#904fc5",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 273.051,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.18088,
    "h": 306.9
  },
  "luminance": 0.15552
}

Semantic roles & 50–950 ramp

primary
#904FC5
secondary
#B5D19F
accent
#DA4E8D
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #904FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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