#904CDB#904CDB

#904CDB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.0% C 0.209 H 301.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#904CDB
RGBrgb(144, 76, 219)
HSLhsl(269, 67%, 58%)
HSVhsv(269, 65%, 86%)
CMYKcmyk(34.2%, 65.3%, 0%, 14.1%)
CIE-LABlab(47.25, 55.51, -62.50)
CIE-LCHlch(47.25, 83.59, 311.61°)
OKLaboklab(56.95% 0.1108 -0.1777)
OKLCHoklch(56.95% 0.209 301.9)
XYZxyz(26.8692, 16.2126, 68.7179)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904CDB #97DB4C
analogous
#4C50DB #904CDB #D74CDB
triadic
#904CDB #DB904C #4CDB90
tetradic
#904CDB #DB4C50 #97DB4C #4CDBD7
square
#904CDB #DB4C50 #97DB4C #4CDBD7
split-complementary
#904CDB #DBD74C #50DB4C
monochromatic
#531D90 #7127C3 #904CDB #B07FE5 #CFB2EF

Accessibility & contrast

On white

4.95
#904CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#904CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904CDB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904CDB#FFFFFF#000000##FFFFFF
##904CDB1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#0A6FD8
Tritanopia (blue-blind)
#816C8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904cdb;
/* rgb */ color: rgb(144, 76, 219);
/* oklch */ color: oklch(57.0% 0.209 301.9);
Tailwind
colors: {
  custom: {
    50: '#b682e7',
    500: '#904cdb',
    950: '#000000',
  },
}
SCSS
$custom: #904cdb;
$custom-light: #b682e7;
$custom-dark: #000000;
JSON
{
  "hex": "#904cdb",
  "rgb": {
    "r": 144,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 268.531,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.20936,
    "h": 301.9
  },
  "luminance": 0.16213
}

Semantic roles & 50–950 ramp

primary
#904CDB
secondary
#C3DEA5
accent
#E93E98
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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