#904CDE#904CDE

#904CDE is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.2% C 0.213 H 301.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#904CDE
RGBrgb(144, 76, 222)
HSLhsl(268, 69%, 58%)
HSVhsv(268, 66%, 87%)
CMYKcmyk(35.1%, 65.8%, 0%, 12.9%)
CIE-LABlab(47.46, 56.24, -63.87)
CIE-LCHlch(47.46, 85.10, 311.36°)
OKLaboklab(57.16% 0.1105 -0.1817)
OKLCHoklch(57.16% 0.213 301.3)
XYZxyz(27.2677, 16.3720, 70.8166)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CDE #9ADE4C
analogous
#4C51DE #904CDE #D94CDE
triadic
#904CDE #DE904C #4CDE90
tetradic
#904CDE #DE4C51 #9ADE4C #4CDED9
square
#904CDE #DE4C51 #9ADE4C #4CDED9
split-complementary
#904CDE #DED94C #51DE4C
monochromatic
#541B94 #7125C8 #904CDE #B080E8 #D0B3F1

Accessibility & contrast

On white

4.91
#904CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#904CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CDE
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CDE#FFFFFF#000000##FFFFFF
##904CDE1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E2
Deuteranopia (green-blind)
#0070DB
Tritanopia (blue-blind)
#7F6D8F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #904cde;
/* rgb */ color: rgb(144, 76, 222);
/* oklch */ color: oklch(57.2% 0.213 301.3);
Tailwind
colors: {
  custom: {
    50: '#b682e9',
    500: '#904cde',
    950: '#000000',
  },
}
SCSS
$custom: #904cde;
$custom-light: #b682e9;
$custom-dark: #000000;
JSON
{
  "hex": "#904cde",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 267.945,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57164,
    "c": 0.21264,
    "h": 301.3
  },
  "luminance": 0.16372
}

Semantic roles & 50–950 ramp

primary
#904CDE
secondary
#C5E0A6
accent
#EC3C9A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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