#904DCF#904DCF

#904DCF is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.3% C 0.195 H 304.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#904DCF
RGBrgb(144, 77, 207)
HSLhsl(271, 58%, 56%)
HSVhsv(271, 63%, 81%)
CMYKcmyk(30.4%, 62.8%, 0%, 18.8%)
CIE-LABlab(46.63, 52.15, -56.63)
CIE-LCHlch(46.63, 76.98, 312.64°)
OKLaboklab(56.25% 0.1106 -0.1604)
OKLCHoklch(56.25% 0.195 304.6)
XYZxyz(25.4155, 15.7422, 60.7190)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DCF #8CCF4D
analogous
#4F4DCF #904DCF #CF4DCD
triadic
#904DCF #CF904D #4DCF90
tetradic
#904DCF #CF4F4D #8CCF4D #4DCDCF
square
#904DCF #CF4F4D #8CCF4D #4DCDCF
split-complementary
#904DCF #CDCF4D #4DCF4F
monochromatic
#52227F #712FAF #904DCF #AE7DDC #CCADE9

Accessibility & contrast

On white

5.06
#904DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#904DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DCF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DCF#FFFFFF#000000##FFFFFF
##904DCF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#2B6FCC
Tritanopia (blue-blind)
#856887
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904dcf;
/* rgb */ color: rgb(144, 77, 207);
/* oklch */ color: oklch(56.3% 0.195 304.6);
Tailwind
colors: {
  custom: {
    50: '#b582de',
    500: '#904dcf',
    950: '#000000',
  },
}
SCSS
$custom: #904dcf;
$custom-light: #b582de;
$custom-dark: #000000;
JSON
{
  "hex": "#904dcf",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 207
  },
  "hsl": {
    "h": 270.923,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5625,
    "c": 0.19485,
    "h": 304.6
  },
  "luminance": 0.15742
}

Semantic roles & 50–950 ramp

primary
#904DCF
secondary
#BBD7A1
accent
#E14792
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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