#904FD6#904FD6

#904FD6 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 57.0% C 0.200 H 302.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#904FD6
RGBrgb(144, 79, 214)
HSLhsl(269, 62%, 57%)
HSVhsv(269, 63%, 84%)
CMYKcmyk(32.7%, 63.1%, 0%, 16.1%)
CIE-LABlab(47.46, 52.81, -59.30)
CIE-LCHlch(47.46, 79.41, 311.69°)
OKLaboklab(57% 0.1078 -0.1683)
OKLCHoklch(57% 0.2 302.7)
XYZxyz(26.4324, 16.3763, 65.3737)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FD6 #95D64F
analogous
#4F51D6 #904FD6 #D44FD6
triadic
#904FD6 #D6904F #4FD690
tetradic
#904FD6 #D64F51 #95D64F #4FD6D4
square
#904FD6 #D64F51 #95D64F #4FD6D4
split-complementary
#904FD6 #D6D44F #51D64F
monochromatic
#53208A #712CBC #904FD6 #AF81E2 #CFB2ED

Accessibility & contrast

On white

4.91
#904FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#904FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FD6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FD6#FFFFFF#000000##FFFFFF
##904FD61.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#2370D3
Tritanopia (blue-blind)
#826C8B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #904fd6;
/* rgb */ color: rgb(144, 79, 214);
/* oklch */ color: oklch(57.0% 0.200 302.7);
Tailwind
colors: {
  custom: {
    50: '#b584e3',
    500: '#904fd6',
    950: '#000000',
  },
}
SCSS
$custom: #904fd6;
$custom-light: #b584e3;
$custom-dark: #000000;
JSON
{
  "hex": "#904fd6",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 214
  },
  "hsl": {
    "h": 268.889,
    "s": 62.212,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56997,
    "c": 0.19987,
    "h": 302.7
  },
  "luminance": 0.16376
}

Semantic roles & 50–950 ramp

primary
#904FD6
secondary
#C1DCA5
accent
#E54397
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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