#B104FF#B104FF

#B104FF is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 59.1% C 0.299 H 309.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B104FF
RGBrgb(177, 4, 255)
HSLhsl(281, 100%, 51%)
HSVhsv(281, 98%, 100%)
CMYKcmyk(30.6%, 98.4%, 0%, 0%)
CIE-LABlab(47.82, 87.41, -81.67)
CIE-LCHlch(47.82, 119.63, 316.94°)
OKLaboklab(59.12% 0.1883 -0.2325)
OKLCHoklch(59.12% 0.299 309)
XYZxyz(36.2211, 16.6546, 95.8949)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B104FF #52FF04
analogous
#3404FF #B104FF #FF04CF
triadic
#B104FF #FFB104 #04FFB1
tetradic
#B104FF #FF3404 #52FF04 #04CFFF
square
#B104FF #FF3404 #52FF04 #04CFFF
split-complementary
#B104FF #CFFF04 #04FF34
monochromatic
#5E0089 #8800C6 #B104FF #C441FF #D77EFF

Accessibility & contrast

On white

4.85
#B104FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B104FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B104FF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B104FF#FFFFFF#000000##FFFFFF
##B104FF1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CFF
Deuteranopia (green-blind)
#0073FB
Tritanopia (blue-blind)
#A45F96
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b104ff;
/* rgb */ color: rgb(177, 4, 255);
/* oklch */ color: oklch(59.1% 0.299 309.0);
Tailwind
colors: {
  custom: {
    50: '#d06fff',
    500: '#b104ff',
    950: '#000000',
  },
}
SCSS
$custom: #b104ff;
$custom-light: #d06fff;
$custom-dark: #000000;
JSON
{
  "hex": "#b104ff",
  "rgb": {
    "r": 177,
    "g": 4,
    "b": 255
  },
  "hsl": {
    "h": 281.355,
    "s": 100,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59118,
    "c": 0.29924,
    "h": 309
  },
  "luminance": 0.16654
}

Semantic roles & 50–950 ramp

primary
#B104FF
secondary
#9AE778
accent
#FF296B
background
#FDF7FF
surface
#FBEDFF
border
#D4C8D7
text
#150918
muted
#837B86

Preview Lab

Preview with #B104FF

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

Preview Lab → · Contrast checker → · Palette generator →

#B104FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva