#904FBC#904FBC

#904FBC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.3% C 0.171 H 309.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#904FBC
RGBrgb(144, 79, 188)
HSLhsl(276, 45%, 52%)
HSVhsv(276, 58%, 74%)
CMYKcmyk(23.4%, 58%, 0%, 26.3%)
CIE-LABlab(45.84, 46.69, -46.91)
CIE-LCHlch(45.84, 66.19, 314.87°)
OKLaboklab(55.3% 0.1085 -0.1319)
OKLCHoklch(55.3% 0.171 309.4)
XYZxyz(23.3729, 15.1525, 49.2606)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#904FBC #7BBC4F
analogous
#5A4FBC #904FBC #BC4FB1
triadic
#904FBC #BC904F #4FBC90
tetradic
#904FBC #BC5A4F #7BBC4F #4FB1BC
square
#904FBC #BC5A4F #7BBC4F #4FB1BC
split-complementary
#904FBC #B1BC4F #4FBC5A
monochromatic
#4F2869 #703995 #904FBC #AC7BCD #C8A8DE

Accessibility & contrast

On white

5.21
#904FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#904FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #904FBC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##904FBC#FFFFFF#000000##FFFFFF
##904FBC1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296AC0
Deuteranopia (green-blind)
#426EB9
Tritanopia (blue-blind)
#8A637E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #904fbc;
/* rgb */ color: rgb(144, 79, 188);
/* oklch */ color: oklch(55.3% 0.171 309.4);
Tailwind
colors: {
  custom: {
    50: '#b383d1',
    500: '#904fbc',
    950: '#000000',
  },
}
SCSS
$custom: #904fbc;
$custom-light: #b383d1;
$custom-dark: #000000;
JSON
{
  "hex": "#904fbc",
  "rgb": {
    "r": 144,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 275.78,
    "s": 44.856,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55298,
    "c": 0.17081,
    "h": 309.4
  },
  "luminance": 0.15152
}

Semantic roles & 50–950 ramp

primary
#904FBC
secondary
#AFCB9C
accent
#D55387
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #904FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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