#904BD4#904BD4

#904BD4 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.203 H 303.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#904BD4
RGBrgb(144, 75, 212)
HSLhsl(270, 61%, 56%)
HSVhsv(270, 65%, 83%)
CMYKcmyk(32.1%, 64.6%, 0%, 16.9%)
CIE-LABlab(46.60, 54.33, -59.56)
CIE-LCHlch(46.60, 80.62, 312.37°)
OKLaboklab(56.33% 0.1125 -0.169)
OKLCHoklch(56.33% 0.203 303.7)
XYZxyz(25.8986, 15.7150, 63.9435)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BD4 #8FD44B
analogous
#4C4BD4 #904BD4 #D44BD4
triadic
#904BD4 #D4904B #4BD490
tetradic
#904BD4 #D44C4B #8FD44B #4BD4D4
square
#904BD4 #D44C4B #8FD44B #4BD4D4
split-complementary
#904BD4 #D4D44B #4BD44C
monochromatic
#532085 #712CB6 #904BD4 #AE7CE0 #CDAEEC

Accessibility & contrast

On white

5.07
#904BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#904BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BD4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BD4#FFFFFF#000000##FFFFFF
##904BD41.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#1E6ED1
Tritanopia (blue-blind)
#836989
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904bd4;
/* rgb */ color: rgb(144, 75, 212);
/* oklch */ color: oklch(56.3% 0.203 303.7);
Tailwind
colors: {
  custom: {
    50: '#b581e2',
    500: '#904bd4',
    950: '#000000',
  },
}
SCSS
$custom: #904bd4;
$custom-light: #b581e2;
$custom-dark: #000000;
JSON
{
  "hex": "#904bd4",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 270.219,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56329,
    "c": 0.20304,
    "h": 303.7
  },
  "luminance": 0.15715
}

Semantic roles & 50–950 ramp

primary
#904BD4
secondary
#BDDAA1
accent
#E54393
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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