#904DCB#904DCB

#904DCB is a mid, vivid violet. Relative luminance 0.155; OKLCH L 56.0% C 0.190 H 305.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#904DCB
RGBrgb(144, 77, 203)
HSLhsl(272, 55%, 55%)
HSVhsv(272, 62%, 80%)
CMYKcmyk(29.1%, 62.1%, 0%, 20.4%)
CIE-LABlab(46.38, 51.20, -54.74)
CIE-LCHlch(46.38, 74.96, 313.09°)
OKLaboklab(55.98% 0.1108 -0.1549)
OKLCHoklch(55.98% 0.19 305.6)
XYZxyz(24.9326, 15.5490, 58.1761)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DCB #88CB4D
analogous
#514DCB #904DCB #CB4DC7
triadic
#904DCB #CB904D #4DCB90
tetradic
#904DCB #CB514D #88CB4D #4DC7CB
square
#904DCB #CB514D #88CB4D #4DC7CB
split-complementary
#904DCB #C7CB4D #4DCB51
monochromatic
#52247A #7131A9 #904DCB #AE7CD9 #CBACE7

Accessibility & contrast

On white

5.11
#904DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#904DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DCB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DCB#FFFFFF#000000##FFFFFF
##904DCB1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#316EC8
Tritanopia (blue-blind)
#866785
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904dcb;
/* rgb */ color: rgb(144, 77, 203);
/* oklch */ color: oklch(56.0% 0.190 305.6);
Tailwind
colors: {
  custom: {
    50: '#b482db',
    500: '#904dcb',
    950: '#000000',
  },
}
SCSS
$custom: #904dcb;
$custom-light: #b482db;
$custom-dark: #000000;
JSON
{
  "hex": "#904dcb",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 271.905,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55982,
    "c": 0.19043,
    "h": 305.6
  },
  "luminance": 0.15549
}

Semantic roles & 50–950 ramp

primary
#904DCB
secondary
#B8D49F
accent
#DE4A8F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #904DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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