#904BC4#904BC4

#904BC4 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.2% C 0.186 H 307.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#904BC4
RGBrgb(144, 75, 196)
HSLhsl(274, 51%, 53%)
HSVhsv(274, 62%, 77%)
CMYKcmyk(26.5%, 61.7%, 0%, 23.1%)
CIE-LABlab(45.56, 50.59, -52.01)
CIE-LCHlch(45.56, 72.55, 314.21°)
OKLaboklab(55.25% 0.1135 -0.1468)
OKLCHoklch(55.25% 0.186 307.7)
XYZxyz(23.9794, 14.9473, 53.8357)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BC4 #7FC44B
analogous
#534BC4 #904BC4 #C44BBB
triadic
#904BC4 #C4904B #4BC490
tetradic
#904BC4 #C4534B #7FC44B #4BBBC4
square
#904BC4 #C4534B #7FC44B #4BBBC4
split-complementary
#904BC4 #BBC44B #4BC453
monochromatic
#502570 #70349E #904BC4 #AC79D3 #C9A7E2

Accessibility & contrast

On white

5.26
#904BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#904BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BC4
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BC4#FFFFFF#000000##FFFFFF
##904BC41.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B69C8
Deuteranopia (green-blind)
#366DC1
Tritanopia (blue-blind)
#886381
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #904bc4;
/* rgb */ color: rgb(144, 75, 196);
/* oklch */ color: oklch(55.2% 0.186 307.7);
Tailwind
colors: {
  custom: {
    50: '#b481d6',
    500: '#904bc4',
    950: '#000000',
  },
}
SCSS
$custom: #904bc4;
$custom-light: #b481d6;
$custom-dark: #000000;
JSON
{
  "hex": "#904bc4",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 196
  },
  "hsl": {
    "h": 274.215,
    "s": 50.628,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55249,
    "c": 0.18558,
    "h": 307.7
  },
  "luminance": 0.14947
}

Semantic roles & 50–950 ramp

primary
#904BC4
secondary
#B2CF9B
accent
#DA4E8A
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #904BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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