#B504FF#B504FF

#B504FF is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 59.7% C 0.300 H 310.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B504FF
RGBrgb(181, 4, 255)
HSLhsl(282, 100%, 51%)
HSVhsv(282, 98%, 100%)
CMYKcmyk(29%, 98.4%, 0%, 0%)
CIE-LABlab(48.43, 87.87, -80.66)
CIE-LCHlch(48.43, 119.27, 317.45°)
OKLaboklab(59.65% 0.1935 -0.2294)
OKLCHoklch(59.65% 0.3 310.1)
XYZxyz(37.1458, 17.1315, 95.9383)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B504FF #4EFF04
analogous
#3704FF #B504FF #FF04CB
triadic
#B504FF #FFB504 #04FFB5
tetradic
#B504FF #FF3704 #4EFF04 #04CBFF
square
#B504FF #FF3704 #4EFF04 #04CBFF
split-complementary
#B504FF #CBFF04 #04FF37
monochromatic
#600089 #8B00C6 #B504FF #C741FF #D97EFF

Accessibility & contrast

On white

4.74
#B504FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B504FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B504FF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B504FF#FFFFFF#000000##FFFFFF
##B504FF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DFF
Deuteranopia (green-blind)
#0075FB
Tritanopia (blue-blind)
#AA5E96
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b504ff;
/* rgb */ color: rgb(181, 4, 255);
/* oklch */ color: oklch(59.7% 0.300 310.1);
Tailwind
colors: {
  custom: {
    50: '#d370ff',
    500: '#b504ff',
    950: '#000000',
  },
}
SCSS
$custom: #b504ff;
$custom-light: #d370ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b504ff",
  "rgb": {
    "r": 181,
    "g": 4,
    "b": 255
  },
  "hsl": {
    "h": 282.311,
    "s": 100,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5965,
    "c": 0.30013,
    "h": 310.1
  },
  "luminance": 0.17131
}

Semantic roles & 50–950 ramp

primary
#B504FF
secondary
#99E778
accent
#FF2968
background
#FDF7FF
surface
#FBEEFF
border
#D4C9D7
text
#150918
muted
#837B86

Preview Lab

Preview with #B504FF

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

Preview Lab → · Contrast checker → · Palette generator →

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