#B04FA2#B04FA2

#B04FA2 is a mid, vivid purple. Relative luminance 0.174; OKLCH L 57.9% C 0.162 H 333.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B04FA2
RGBrgb(176, 79, 162)
HSLhsl(309, 38%, 50%)
HSVhsv(309, 55%, 69%)
CMYKcmyk(0%, 55.1%, 8%, 31%)
CIE-LABlab(48.80, 50.27, -26.71)
CIE-LCHlch(48.80, 56.92, 332.02°)
OKLaboklab(57.94% 0.1445 -0.0727)
OKLCHoklch(57.94% 0.162 333.3)
XYZxyz(27.2221, 17.4326, 36.1065)
Luminance0.1743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04FA2 #4FB05D
analogous
#8E4FB0 #B04FA2 #B04F71
triadic
#B04FA2 #A2B04F #4FA2B0
tetradic
#B04FA2 #B08E4F #4FB05D #4F71B0
square
#B04FA2 #B08E4F #4FB05D #4F71B0
split-complementary
#B04FA2 #71B04F #4FB08E
monochromatic
#5C2954 #863C7B #B04FA2 #C379B8 #D6A3CF

Accessibility & contrast

On white

4.68
#B04FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#B04FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B04FA2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04FA2#FFFFFF#000000##FFFFFF
##B04FA21.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#6A799F
Tritanopia (blue-blind)
#B75671
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b04fa2;
/* rgb */ color: rgb(176, 79, 162);
/* oklch */ color: oklch(57.9% 0.162 333.3);
Tailwind
colors: {
  custom: {
    50: '#ca85bd',
    500: '#b04fa2',
    950: '#000000',
  },
}
SCSS
$custom: #b04fa2;
$custom-light: #ca85bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b04fa2",
  "rgb": {
    "r": 176,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 308.66,
    "s": 38.039,
    "l": 50
  },
  "oklch": {
    "l": 0.57941,
    "c": 0.16178,
    "h": 333.3
  },
  "luminance": 0.17431
}

Semantic roles & 50–950 ramp

primary
#B04FA2
secondary
#98C39E
accent
#CE6B5A
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B04FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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