#904FD2#904FD2

#904FD2 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.7% C 0.195 H 303.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#904FD2
RGBrgb(144, 79, 210)
HSLhsl(270, 59%, 57%)
HSVhsv(270, 62%, 82%)
CMYKcmyk(31.4%, 62.4%, 0%, 17.6%)
CIE-LABlab(47.20, 51.85, -57.44)
CIE-LCHlch(47.20, 77.38, 312.07°)
OKLaboklab(56.72% 0.1081 -0.1628)
OKLCHoklch(56.72% 0.195 303.6)
XYZxyz(25.9278, 16.1744, 62.7163)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FD2 #91D24F
analogous
#4F50D2 #904FD2 #D24FD2
triadic
#904FD2 #D2904F #4FD290
tetradic
#904FD2 #D24F50 #91D24F #4FD2D2
square
#904FD2 #D24F50 #91D24F #4FD2D2
split-complementary
#904FD2 #D2D24F #50D24F
monochromatic
#532285 #712EB5 #904FD2 #AF80DE #CDB0EB

Accessibility & contrast

On white

4.96
#904FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#904FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FD2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FD2#FFFFFF#000000##FFFFFF
##904FD21.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#2A70CF
Tritanopia (blue-blind)
#846B89
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904fd2;
/* rgb */ color: rgb(144, 79, 210);
/* oklch */ color: oklch(56.7% 0.195 303.6);
Tailwind
colors: {
  custom: {
    50: '#b584e0',
    500: '#904fd2',
    950: '#000000',
  },
}
SCSS
$custom: #904fd2;
$custom-light: #b584e0;
$custom-dark: #000000;
JSON
{
  "hex": "#904fd2",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 269.771,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.19542,
    "h": 303.6
  },
  "luminance": 0.16174
}

Semantic roles & 50–950 ramp

primary
#904FD2
secondary
#BFD9A4
accent
#E24594
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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