#904BCB#904BCB

#904BCB is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.7% C 0.193 H 305.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#904BCB
RGBrgb(144, 75, 203)
HSLhsl(272, 55%, 55%)
HSVhsv(272, 63%, 80%)
CMYKcmyk(29.1%, 63.1%, 0%, 20.4%)
CIE-LABlab(46.01, 52.21, -55.34)
CIE-LCHlch(46.01, 76.08, 313.33°)
OKLaboklab(55.71% 0.1132 -0.1566)
OKLCHoklch(55.71% 0.193 305.8)
XYZxyz(24.7948, 15.2734, 58.1302)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BCB #86CB4B
analogous
#504BCB #904BCB #CB4BC6
triadic
#904BCB #CB904B #4BCB90
tetradic
#904BCB #CB504B #86CB4B #4BC6CB
square
#904BCB #CB504B #86CB4B #4BC6CB
split-complementary
#904BCB #C6CB4B #4BCB50
monochromatic
#512379 #7131A8 #904BCB #AD7AD9 #CBAAE6

Accessibility & contrast

On white

5.18
#904BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#904BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BCB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BCB#FFFFFF#000000##FFFFFF
##904BCB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#2E6DC8
Tritanopia (blue-blind)
#866684
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #904bcb;
/* rgb */ color: rgb(144, 75, 203);
/* oklch */ color: oklch(55.7% 0.193 305.8);
Tailwind
colors: {
  custom: {
    50: '#b581db',
    500: '#904bcb',
    950: '#000000',
  },
}
SCSS
$custom: #904bcb;
$custom-light: #b581db;
$custom-dark: #000000;
JSON
{
  "hex": "#904bcb",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 272.344,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55713,
    "c": 0.19322,
    "h": 305.8
  },
  "luminance": 0.15273
}

Semantic roles & 50–950 ramp

primary
#904BCB
secondary
#B7D49E
accent
#DF498E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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