#904FD4#904FD4

#904FD4 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.9% C 0.198 H 303.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#904FD4
RGBrgb(144, 79, 212)
HSLhsl(269, 61%, 57%)
HSVhsv(269, 63%, 83%)
CMYKcmyk(32.1%, 62.7%, 0%, 16.9%)
CIE-LABlab(47.33, 52.33, -58.37)
CIE-LCHlch(47.33, 78.39, 311.88°)
OKLaboklab(56.86% 0.108 -0.1655)
OKLCHoklch(56.86% 0.198 303.1)
XYZxyz(26.1785, 16.2747, 64.0368)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FD4 #93D44F
analogous
#4F51D4 #904FD4 #D24FD4
triadic
#904FD4 #D4904F #4FD490
tetradic
#904FD4 #D44F51 #93D44F #4FD4D2
square
#904FD4 #D44F51 #93D44F #4FD4D2
split-complementary
#904FD4 #D4D24F #51D44F
monochromatic
#532187 #712DB9 #904FD4 #AF80E0 #CEB1EC

Accessibility & contrast

On white

4.94
#904FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #904FD4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FD4#FFFFFF#000000##FFFFFF
##904FD41.004.944.264.94
#FFFFFF4.941.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#2670D1
Tritanopia (blue-blind)
#836B8A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904fd4;
/* rgb */ color: rgb(144, 79, 212);
/* oklch */ color: oklch(56.9% 0.198 303.1);
Tailwind
colors: {
  custom: {
    50: '#b584e2',
    500: '#904fd4',
    950: '#000000',
  },
}
SCSS
$custom: #904fd4;
$custom-light: #b584e2;
$custom-dark: #000000;
JSON
{
  "hex": "#904fd4",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 269.323,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5686,
    "c": 0.19765,
    "h": 303.1
  },
  "luminance": 0.16275
}

Semantic roles & 50–950 ramp

primary
#904FD4
secondary
#C0DAA4
accent
#E44496
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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