#904FDB#904FDB

#904FDB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.205 H 301.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#904FDB
RGBrgb(144, 79, 219)
HSLhsl(268, 66%, 58%)
HSVhsv(268, 64%, 86%)
CMYKcmyk(34.2%, 63.9%, 0%, 14.1%)
CIE-LABlab(47.80, 54.02, -61.62)
CIE-LCHlch(47.80, 81.94, 311.24°)
OKLaboklab(57.34% 0.1075 -0.1751)
OKLCHoklch(57.34% 0.205 301.5)
XYZxyz(27.0807, 16.6356, 68.7884)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FDB #9ADB4F
analogous
#4F54DB #904FDB #D64FDB
triadic
#904FDB #DB904F #4FDB90
tetradic
#904FDB #DB4F54 #9ADB4F #4FDBD6
square
#904FDB #DB4F54 #9ADB4F #4FDBD6
split-complementary
#904FDB #DBD64F #54DB4F
monochromatic
#541E92 #7128C5 #904FDB #B082E5 #D0B5F0

Accessibility & contrast

On white

4.85
#904FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#904FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FDB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FDB#FFFFFF#000000##FFFFFF
##904FDB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#1671D8
Tritanopia (blue-blind)
#806E8E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #904fdb;
/* rgb */ color: rgb(144, 79, 219);
/* oklch */ color: oklch(57.3% 0.205 301.5);
Tailwind
colors: {
  custom: {
    50: '#b584e7',
    500: '#904fdb',
    950: '#000000',
  },
}
SCSS
$custom: #904fdb;
$custom-light: #b584e7;
$custom-dark: #000000;
JSON
{
  "hex": "#904fdb",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 267.857,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57343,
    "c": 0.20543,
    "h": 301.5
  },
  "luminance": 0.16636
}

Semantic roles & 50–950 ramp

primary
#904FDB
secondary
#C5DFA7
accent
#E93F9A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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