#B045A6#B045A6

#B045A6 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 56.9% C 0.180 H 331.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B045A6
RGBrgb(176, 69, 166)
HSLhsl(306, 44%, 48%)
HSVhsv(306, 61%, 69%)
CMYKcmyk(0%, 60.8%, 5.7%, 31%)
CIE-LABlab(47.29, 55.54, -31.43)
CIE-LCHlch(47.29, 63.81, 330.50°)
OKLaboklab(56.89% 0.1584 -0.0861)
OKLCHoklch(56.89% 0.18 331.5)
XYZxyz(26.9155, 16.2415, 37.7863)
Luminance0.1624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045A6 #45B04F
analogous
#8445B0 #B045A6 #B04571
triadic
#B045A6 #A6B045 #45A6B0
tetradic
#B045A6 #B08445 #45B04F #4571B0
square
#B045A6 #B08445 #45B04F #4571B0
split-complementary
#B045A6 #71B045 #45B084
monochromatic
#582353 #84347D #B045A6 #C66DBD #D799D1

Accessibility & contrast

On white

4.94
#B045A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B045A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B045A6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045A6#FFFFFF#000000##FFFFFF
##B045A61.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4067A9
Deuteranopia (green-blind)
#6376A3
Tritanopia (blue-blind)
#B74F6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b045a6;
/* rgb */ color: rgb(176, 69, 166);
/* oklch */ color: oklch(56.9% 0.180 331.5);
Tailwind
colors: {
  custom: {
    50: '#ca7fc0',
    500: '#b045a6',
    950: '#000000',
  },
}
SCSS
$custom: #b045a6;
$custom-light: #ca7fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#b045a6",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 305.607,
    "s": 43.673,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56893,
    "c": 0.18031,
    "h": 331.5
  },
  "luminance": 0.1624
}

Semantic roles & 50–950 ramp

primary
#B045A6
secondary
#8EC393
accent
#D36054
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B045A6

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

Preview Lab → · Contrast checker → · Palette generator →

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