#904FCC#904FCC

#904FCC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.189 H 305.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#904FCC
RGBrgb(144, 79, 204)
HSLhsl(271, 55%, 55%)
HSVhsv(271, 61%, 80%)
CMYKcmyk(29.4%, 61.3%, 0%, 20%)
CIE-LABlab(46.82, 50.42, -54.61)
CIE-LCHlch(46.82, 74.33, 312.72°)
OKLaboklab(56.32% 0.1084 -0.1545)
OKLCHoklch(56.32% 0.189 305)
XYZxyz(25.1943, 15.8810, 58.8531)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FCC #8BCC4F
analogous
#514FCC #904FCC #CC4FC9
triadic
#904FCC #CC904F #4FCC90
tetradic
#904FCC #CC514F #8BCC4F #4FC9CC
square
#904FCC #CC514F #8BCC4F #4FC9CC
split-complementary
#904FCC #C9CC4F #4FCC51
monochromatic
#52247D #7132AC #904FCC #AE7EDA #CCAEE7

Accessibility & contrast

On white

5.03
#904FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#904FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FCC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FCC#FFFFFF#000000##FFFFFF
##904FCC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046DD0
Deuteranopia (green-blind)
#326FC9
Tritanopia (blue-blind)
#856986
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904fcc;
/* rgb */ color: rgb(144, 79, 204);
/* oklch */ color: oklch(56.3% 0.189 305.0);
Tailwind
colors: {
  custom: {
    50: '#b484dc',
    500: '#904fcc',
    950: '#000000',
  },
}
SCSS
$custom: #904fcc;
$custom-light: #b484dc;
$custom-dark: #000000;
JSON
{
  "hex": "#904fcc",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 204
  },
  "hsl": {
    "h": 271.2,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.18872,
    "h": 305
  },
  "luminance": 0.15881
}

Semantic roles & 50–950 ramp

primary
#904FCC
secondary
#BAD5A1
accent
#DE4991
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #904FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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