#904FC2#904FC2

#904FC2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.178 H 307.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#904FC2
RGBrgb(144, 79, 194)
HSLhsl(274, 49%, 54%)
HSVhsv(274, 59%, 76%)
CMYKcmyk(25.8%, 59.3%, 0%, 23.9%)
CIE-LABlab(46.20, 48.07, -49.83)
CIE-LCHlch(46.20, 69.24, 313.97°)
OKLaboklab(55.67% 0.1086 -0.1405)
OKLCHoklch(55.67% 0.178 307.7)
XYZxyz(24.0332, 15.4166, 52.7381)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FC2 #81C24F
analogous
#564FC2 #904FC2 #C24FBA
triadic
#904FC2 #C2904F #4FC290
tetradic
#904FC2 #C2564F #81C24F #4FBAC2
square
#904FC2 #C2564F #81C24F #4FBAC2
split-complementary
#904FC2 #BAC24F #4FC256
monochromatic
#502770 #71379D #904FC2 #AD7CD2 #C9AAE2

Accessibility & contrast

On white

5.14
#904FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#904FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FC2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FC2#FFFFFF#000000##FFFFFF
##904FC21.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#3D6EBF
Tritanopia (blue-blind)
#886581
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #904fc2;
/* rgb */ color: rgb(144, 79, 194);
/* oklch */ color: oklch(55.7% 0.178 307.7);
Tailwind
colors: {
  custom: {
    50: '#b483d5',
    500: '#904fc2',
    950: '#000000',
  },
}
SCSS
$custom: #904fc2;
$custom-light: #b483d5;
$custom-dark: #000000;
JSON
{
  "hex": "#904fc2",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 273.913,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55674,
    "c": 0.17752,
    "h": 307.7
  },
  "luminance": 0.15416
}

Semantic roles & 50–950 ramp

primary
#904FC2
secondary
#B3CF9E
accent
#D8508B
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #904FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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