#B045A5#B045A5

#B045A5 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 56.8% C 0.179 H 331.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B045A5
RGBrgb(176, 69, 165)
HSLhsl(306, 44%, 48%)
HSVhsv(306, 61%, 69%)
CMYKcmyk(0%, 60.8%, 6.2%, 31%)
CIE-LABlab(47.24, 55.37, -30.91)
CIE-LCHlch(47.24, 63.42, 330.83°)
OKLaboklab(56.84% 0.1583 -0.0846)
OKLCHoklch(56.84% 0.18 331.9)
XYZxyz(26.8241, 16.2049, 37.3051)
Luminance0.1620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045A5 #45B050
analogous
#8545B0 #B045A5 #B04570
triadic
#B045A5 #A5B045 #45A5B0
tetradic
#B045A5 #B08545 #45B050 #4570B0
square
#B045A5 #B08545 #45B050 #4570B0
split-complementary
#B045A5 #70B045 #45B085
monochromatic
#582353 #84347C #B045A5 #C66DBC #D799D0

Accessibility & contrast

On white

4.95
#B045A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#B045A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B045A5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045A5#FFFFFF#000000##FFFFFF
##B045A51.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4066A8
Deuteranopia (green-blind)
#6375A2
Tritanopia (blue-blind)
#B74E6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b045a5;
/* rgb */ color: rgb(176, 69, 165);
/* oklch */ color: oklch(56.8% 0.179 331.9);
Tailwind
colors: {
  custom: {
    50: '#ca7fc0',
    500: '#b045a5',
    950: '#000000',
  },
}
SCSS
$custom: #b045a5;
$custom-light: #ca7fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#b045a5",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 306.168,
    "s": 43.673,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56842,
    "c": 0.1795,
    "h": 331.9
  },
  "luminance": 0.16203
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B045A5

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

Preview Lab → · Contrast checker → · Palette generator →

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