#904BD2#904BD2

#904BD2 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.2% C 0.201 H 304.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#904BD2
RGBrgb(144, 75, 210)
HSLhsl(271, 60%, 56%)
HSVhsv(271, 64%, 82%)
CMYKcmyk(31.4%, 64.3%, 0%, 17.6%)
CIE-LABlab(46.46, 53.86, -58.63)
CIE-LCHlch(46.46, 79.61, 312.57°)
OKLaboklab(56.19% 0.1127 -0.1663)
OKLCHoklch(56.19% 0.201 304.1)
XYZxyz(25.6479, 15.6147, 62.6230)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904BD2 #8DD24B
analogous
#4C4BD2 #904BD2 #D24BD0
triadic
#904BD2 #D2904B #4BD290
tetradic
#904BD2 #D24C4B #8DD24B #4BD0D2
square
#904BD2 #D24C4B #8DD24B #4BD0D2
split-complementary
#904BD2 #D0D24B #4BD24C
monochromatic
#522182 #712DB3 #904BD2 #AE7CDE #CCADEA

Accessibility & contrast

On white

5.09
#904BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#904BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904BD2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904BD2#FFFFFF#000000##FFFFFF
##904BD21.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#226ECF
Tritanopia (blue-blind)
#846888
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #904bd2;
/* rgb */ color: rgb(144, 75, 210);
/* oklch */ color: oklch(56.2% 0.201 304.1);
Tailwind
colors: {
  custom: {
    50: '#b581e1',
    500: '#904bd2',
    950: '#000000',
  },
}
SCSS
$custom: #904bd2;
$custom-light: #b581e1;
$custom-dark: #000000;
JSON
{
  "hex": "#904bd2",
  "rgb": {
    "r": 144,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 270.667,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56191,
    "c": 0.20086,
    "h": 304.1
  },
  "luminance": 0.15615
}

Semantic roles & 50–950 ramp

primary
#904BD2
secondary
#BCD8A0
accent
#E34592
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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