#904DDB#904DDB

#904DDB is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.208 H 301.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#904DDB
RGBrgb(144, 77, 219)
HSLhsl(268, 66%, 58%)
HSVhsv(268, 65%, 86%)
CMYKcmyk(34.2%, 64.8%, 0%, 14.1%)
CIE-LABlab(47.43, 55.02, -62.21)
CIE-LCHlch(47.43, 83.05, 311.49°)
OKLaboklab(57.08% 0.1097 -0.1768)
OKLCHoklch(57.08% 0.208 301.8)
XYZxyz(26.9386, 16.3514, 68.7410)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904DDB #98DB4D
analogous
#4D51DB #904DDB #D74DDB
triadic
#904DDB #DB904D #4DDB90
tetradic
#904DDB #DB4D51 #98DB4D #4DDBD7
square
#904DDB #DB4D51 #98DB4D #4DDBD7
split-complementary
#904DDB #DBD74D #51DB4D
monochromatic
#541D90 #7127C3 #904DDB #B080E5 #CFB3F0

Accessibility & contrast

On white

4.92
#904DDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#904DDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904DDB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904DDB#FFFFFF#000000##FFFFFF
##904DDB1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#0F70D8
Tritanopia (blue-blind)
#816D8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #904ddb;
/* rgb */ color: rgb(144, 77, 219);
/* oklch */ color: oklch(57.1% 0.208 301.8);
Tailwind
colors: {
  custom: {
    50: '#b683e7',
    500: '#904ddb',
    950: '#000000',
  },
}
SCSS
$custom: #904ddb;
$custom-light: #b683e7;
$custom-dark: #000000;
JSON
{
  "hex": "#904ddb",
  "rgb": {
    "r": 144,
    "g": 77,
    "b": 219
  },
  "hsl": {
    "h": 268.31,
    "s": 66.355,
    "l": 58.039
  },
  "oklch": {
    "l": 0.5708,
    "c": 0.20806,
    "h": 301.8
  },
  "luminance": 0.16352
}

Semantic roles & 50–950 ramp

primary
#904DDB
secondary
#C3DEA6
accent
#E93F99
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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