#904FEC#904FEC

#904FEC is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.6% C 0.224 H 298.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#904FEC
RGBrgb(144, 79, 236)
HSLhsl(265, 81%, 62%)
HSVhsv(265, 67%, 93%)
CMYKcmyk(39%, 66.5%, 0%, 7.5%)
CIE-LABlab(48.98, 58.20, -69.32)
CIE-LCHlch(48.98, 90.51, 310.01°)
OKLaboklab(58.57% 0.1056 -0.1977)
OKLCHoklch(58.57% 0.224 298.1)
XYZxyz(29.4340, 17.5769, 81.1826)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FEC #ABEC4F
analogous
#4F5DEC #904FEC #DF4FEC
triadic
#904FEC #EC904F #4FEC90
tetradic
#904FEC #EC4F5D #ABEC4F #4FECDF
square
#904FEC #EC4F5D #ABEC4F #4FECDF
split-complementary
#904FEC #ECDF4F #5DEC4F
monochromatic
#5313AE #6D19E5 #904FEC #B386F2 #D6BDF8

Accessibility & contrast

On white

4.65
#904FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#904FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #904FEC
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FEC#FFFFFF#000000##FFFFFF
##904FEC1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#7A7497
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #904fec;
/* rgb */ color: rgb(144, 79, 236);
/* oklch */ color: oklch(58.6% 0.224 298.1);
Tailwind
colors: {
  custom: {
    50: '#b784f3',
    500: '#904fec',
    950: '#000000',
  },
}
SCSS
$custom: #904fec;
$custom-light: #b784f3;
$custom-dark: #000000;
JSON
{
  "hex": "#904fec",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 264.841,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58566,
    "c": 0.22418,
    "h": 298.1
  },
  "luminance": 0.17577
}

Semantic roles & 50–950 ramp

primary
#904FEC
secondary
#D0E8AE
accent
#DD0985
background
#FBF8FF
surface
#F7EFFE
border
#D0CAD6
text
#120B17
muted
#817C85

Preview Lab

Preview with #904FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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