#904CDC#904CDC

#904CDC is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.210 H 301.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#904CDC
RGBrgb(144, 76, 220)
HSLhsl(268, 67%, 58%)
HSVhsv(268, 65%, 86%)
CMYKcmyk(34.5%, 65.5%, 0%, 13.7%)
CIE-LABlab(47.32, 55.75, -62.96)
CIE-LCHlch(47.32, 84.10, 311.53°)
OKLaboklab(57.02% 0.1107 -0.179)
OKLCHoklch(57.02% 0.21 301.7)
XYZxyz(27.0012, 16.2654, 69.4133)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CDC #98DC4C
analogous
#4C50DC #904CDC #D84CDC
triadic
#904CDC #DC904C #4CDC90
tetradic
#904CDC #DC4C50 #98DC4C #4CDCD8
square
#904CDC #DC4C50 #98DC4C #4CDCD8
split-complementary
#904CDC #DCD84C #50DC4C
monochromatic
#541C91 #7126C4 #904CDC #B07FE6 #CFB2F0

Accessibility & contrast

On white

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

On black

4.25
#904CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##904CDC#FFFFFF#000000##FFFFFF
##904CDC1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0570D9
Tritanopia (blue-blind)
#806C8E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904cdc;
/* rgb */ color: rgb(144, 76, 220);
/* oklch */ color: oklch(57.0% 0.210 301.7);
Tailwind
colors: {
  custom: {
    50: '#b682e8',
    500: '#904cdc',
    950: '#000000',
  },
}
SCSS
$custom: #904cdc;
$custom-light: #b682e8;
$custom-dark: #000000;
JSON
{
  "hex": "#904cdc",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 268.333,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57021,
    "c": 0.21045,
    "h": 301.7
  },
  "luminance": 0.16265
}

Semantic roles & 50–950 ramp

primary
#904CDC
secondary
#C3DFA5
accent
#EA3E99
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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