#B045A8#B045A8

#B045A8 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.0% C 0.182 H 330.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B045A8
RGBrgb(176, 69, 168)
HSLhsl(304, 44%, 48%)
HSVhsv(304, 61%, 69%)
CMYKcmyk(0%, 60.8%, 4.5%, 31%)
CIE-LABlab(47.39, 55.88, -32.46)
CIE-LCHlch(47.39, 64.62, 329.85°)
OKLaboklab(56.99% 0.1587 -0.0891)
OKLCHoklch(56.99% 0.182 330.7)
XYZxyz(27.1004, 16.3154, 38.7600)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045A8 #45B04D
analogous
#8245B0 #B045A8 #B04572
triadic
#B045A8 #A8B045 #45A8B0
tetradic
#B045A8 #B08245 #45B04D #4572B0
square
#B045A8 #B08245 #45B04D #4572B0
split-complementary
#B045A8 #72B045 #45B082
monochromatic
#582354 #84347E #B045A8 #C66DBF #D799D2

Accessibility & contrast

On white

4.93
#B045A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B045A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B045A8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045A8#FFFFFF#000000##FFFFFF
##B045A81.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E67AB
Deuteranopia (green-blind)
#6276A5
Tritanopia (blue-blind)
#B64F70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b045a8;
/* rgb */ color: rgb(176, 69, 168);
/* oklch */ color: oklch(57.0% 0.182 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca7fc2',
    500: '#b045a8',
    950: '#000000',
  },
}
SCSS
$custom: #b045a8;
$custom-light: #ca7fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#b045a8",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 304.486,
    "s": 43.673,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56994,
    "c": 0.18196,
    "h": 330.7
  },
  "luminance": 0.16314
}

Semantic roles & 50–950 ramp

primary
#B045A8
secondary
#8EC392
accent
#D35E54
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B045A8

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

Preview Lab → · Contrast checker → · Palette generator →

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