#904ED7#904ED7

#904ED7 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.9% C 0.202 H 302.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#904ED7
RGBrgb(144, 78, 215)
HSLhsl(269, 63%, 57%)
HSVhsv(269, 64%, 84%)
CMYKcmyk(33%, 63.7%, 0%, 15.7%)
CIE-LABlab(47.35, 53.56, -60.07)
CIE-LCHlch(47.35, 80.48, 311.72°)
OKLaboklab(56.93% 0.1089 -0.1705)
OKLCHoklch(56.93% 0.202 302.6)
XYZxyz(26.4889, 16.2843, 66.0245)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904ED7 #95D74E
analogous
#4E50D7 #904ED7 #D54ED7
triadic
#904ED7 #D7904E #4ED790
tetradic
#904ED7 #D74E50 #95D74E #4ED7D5
square
#904ED7 #D74E50 #95D74E #4ED7D5
split-complementary
#904ED7 #D7D54E #50D74E
monochromatic
#531F8B #712BBD #904ED7 #AF80E2 #CFB2EE

Accessibility & contrast

On white

4.93
#904ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#904ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904ED7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904ED7#FFFFFF#000000##FFFFFF
##904ED71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#1E70D4
Tritanopia (blue-blind)
#826C8C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904ed7;
/* rgb */ color: rgb(144, 78, 215);
/* oklch */ color: oklch(56.9% 0.202 302.6);
Tailwind
colors: {
  custom: {
    50: '#b583e4',
    500: '#904ed7',
    950: '#000000',
  },
}
SCSS
$custom: #904ed7;
$custom-light: #b583e4;
$custom-dark: #000000;
JSON
{
  "hex": "#904ed7",
  "rgb": {
    "r": 144,
    "g": 78,
    "b": 215
  },
  "hsl": {
    "h": 268.905,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56932,
    "c": 0.20233,
    "h": 302.6
  },
  "luminance": 0.16284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #904ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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