#B04FA7#B04FA7

#B04FA7 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.2% C 0.166 H 331.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B04FA7
RGBrgb(176, 79, 167)
HSLhsl(306, 38%, 50%)
HSVhsv(306, 55%, 69%)
CMYKcmyk(0%, 55.1%, 5.1%, 31%)
CIE-LABlab(49.02, 51.12, -29.31)
CIE-LCHlch(49.02, 58.93, 330.18°)
OKLaboklab(58.18% 0.1454 -0.0801)
OKLCHoklch(58.18% 0.166 331.1)
XYZxyz(27.6754, 17.6139, 38.4939)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04FA7 #4FB058
analogous
#884FB0 #B04FA7 #B04F77
triadic
#B04FA7 #A7B04F #4FA7B0
tetradic
#B04FA7 #B0884F #4FB058 #4F77B0
square
#B04FA7 #B0884F #4FB058 #4F77B0
split-complementary
#B04FA7 #77B04F #4FB088
monochromatic
#5C2957 #863C7F #B04FA7 #C379BC #D6A3D1

Accessibility & contrast

On white

4.64
#B04FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B04FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B04FA7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04FA7#FFFFFF#000000##FFFFFF
##B04FA71.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6CAA
Deuteranopia (green-blind)
#6879A4
Tritanopia (blue-blind)
#B65774
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b04fa7;
/* rgb */ color: rgb(176, 79, 167);
/* oklch */ color: oklch(58.2% 0.166 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca85c1',
    500: '#b04fa7',
    950: '#000000',
  },
}
SCSS
$custom: #b04fa7;
$custom-light: #ca85c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b04fa7",
  "rgb": {
    "r": 176,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 305.567,
    "s": 38.039,
    "l": 50
  },
  "oklch": {
    "l": 0.58179,
    "c": 0.16598,
    "h": 331.1
  },
  "luminance": 0.17612
}

Semantic roles & 50–950 ramp

primary
#B04FA7
secondary
#98C39C
accent
#CE655A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B04FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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