#904FDF#904FDF

#904FDF is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.6% C 0.210 H 300.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#904FDF
RGBrgb(144, 79, 223)
HSLhsl(267, 69%, 59%)
HSVhsv(267, 65%, 87%)
CMYKcmyk(35.4%, 64.6%, 0%, 12.5%)
CIE-LABlab(48.07, 55.00, -63.45)
CIE-LCHlch(48.07, 83.97, 310.92°)
OKLaboklab(57.63% 0.1071 -0.1805)
OKLCHoklch(57.63% 0.21 300.7)
XYZxyz(27.6136, 16.8488, 71.5951)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FDF #9EDF4F
analogous
#4F56DF #904FDF #D84FDF
triadic
#904FDF #DF904F #4FDF90
tetradic
#904FDF #DF4F56 #9EDF4F #4FDFD8
square
#904FDF #DF4F56 #9EDF4F #4FDFD8
split-complementary
#904FDF #DFD84F #56DF4F
monochromatic
#541C98 #7025CC #904FDF #B183E8 #D1B7F2

Accessibility & contrast

On white

4.81
#904FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#904FDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FDF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FDF#FFFFFF#000000##FFFFFF
##904FDF1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E3
Deuteranopia (green-blind)
#0571DC
Tritanopia (blue-blind)
#7F6F90
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #904fdf;
/* rgb */ color: rgb(144, 79, 223);
/* oklch */ color: oklch(57.6% 0.210 300.7);
Tailwind
colors: {
  custom: {
    50: '#b684ea',
    500: '#904fdf',
    950: '#000000',
  },
}
SCSS
$custom: #904fdf;
$custom-light: #b684ea;
$custom-dark: #000000;
JSON
{
  "hex": "#904fdf",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 223
  },
  "hsl": {
    "h": 267.083,
    "s": 69.231,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57625,
    "c": 0.20987,
    "h": 300.7
  },
  "luminance": 0.16849
}

Semantic roles & 50–950 ramp

primary
#904FDF
secondary
#C8E1A9
accent
#EC3C9C
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #904FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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