#904FCF#904FCF

#904FCF is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.5% C 0.192 H 304.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#904FCF
RGBrgb(144, 79, 207)
HSLhsl(270, 57%, 56%)
HSVhsv(270, 62%, 81%)
CMYKcmyk(30.4%, 61.8%, 0%, 18.8%)
CIE-LABlab(47.01, 51.13, -56.03)
CIE-LCHlch(47.01, 75.85, 312.38°)
OKLaboklab(56.52% 0.1083 -0.1587)
OKLCHoklch(56.52% 0.192 304.3)
XYZxyz(25.5576, 16.0263, 60.7664)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FCF #8ECF4F
analogous
#504FCF #904FCF #CF4FCE
triadic
#904FCF #CF904F #4FCF90
tetradic
#904FCF #CF504F #8ECF4F #4FCECF
square
#904FCF #CF504F #8ECF4F #4FCECF
split-complementary
#904FCF #CECF4F #4FCF50
monochromatic
#532381 #7130B1 #904FCF #AE7FDC #CDAFE9

Accessibility & contrast

On white

4.99
#904FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#904FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FCF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FCF#FFFFFF#000000##FFFFFF
##904FCF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#2E6FCC
Tritanopia (blue-blind)
#846A88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #904fcf;
/* rgb */ color: rgb(144, 79, 207);
/* oklch */ color: oklch(56.5% 0.192 304.3);
Tailwind
colors: {
  custom: {
    50: '#b584de',
    500: '#904fcf',
    950: '#000000',
  },
}
SCSS
$custom: #904fcf;
$custom-light: #b584de;
$custom-dark: #000000;
JSON
{
  "hex": "#904fcf",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 207
  },
  "hsl": {
    "h": 270.469,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56522,
    "c": 0.19207,
    "h": 304.3
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#904FCF
secondary
#BCD7A2
accent
#E04793
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #904FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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