#904FD1#904FD1

#904FD1 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.7% C 0.194 H 303.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#904FD1
RGBrgb(144, 79, 209)
HSLhsl(270, 59%, 56%)
HSVhsv(270, 62%, 82%)
CMYKcmyk(31.1%, 62.2%, 0%, 18%)
CIE-LABlab(47.14, 51.61, -56.97)
CIE-LCHlch(47.14, 76.87, 312.18°)
OKLaboklab(56.66% 0.1082 -0.1614)
OKLCHoklch(56.66% 0.194 303.8)
XYZxyz(25.8036, 16.1248, 62.0622)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FD1 #90D14F
analogous
#4F4FD1 #904FD1 #D14FD1
triadic
#904FD1 #D1904F #4FD190
tetradic
#904FD1 #D14F4F #90D14F #4FD1D1
square
#904FD1 #D14F4F #90D14F #4FD1D1
split-complementary
#904FD1 #D1D14F #4FD14F
monochromatic
#532283 #712FB4 #904FD1 #AF80DE #CDB0EA

Accessibility & contrast

On white

4.97
#904FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#904FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FD1
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FD1#FFFFFF#000000##FFFFFF
##904FD11.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED5
Deuteranopia (green-blind)
#2B70CE
Tritanopia (blue-blind)
#846A89
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904fd1;
/* rgb */ color: rgb(144, 79, 209);
/* oklch */ color: oklch(56.7% 0.194 303.8);
Tailwind
colors: {
  custom: {
    50: '#b584e0',
    500: '#904fd1',
    950: '#000000',
  },
}
SCSS
$custom: #904fd1;
$custom-light: #b584e0;
$custom-dark: #000000;
JSON
{
  "hex": "#904fd1",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 209
  },
  "hsl": {
    "h": 270,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56656,
    "c": 0.1943,
    "h": 303.8
  },
  "luminance": 0.16125
}

Semantic roles & 50–950 ramp

primary
#904FD1
secondary
#BED9A3
accent
#E24694
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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