#B045B8#B045B8

#B045B8 is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.8% C 0.196 H 324.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B045B8
RGBrgb(176, 69, 184)
HSLhsl(296, 45%, 50%)
HSVhsv(296, 63%, 72%)
CMYKcmyk(4.3%, 62.5%, 0%, 27.8%)
CIE-LABlab(48.20, 58.67, -40.57)
CIE-LCHlch(48.20, 71.34, 325.34°)
OKLaboklab(57.85% 0.16 -0.1125)
OKLCHoklch(57.85% 0.196 324.9)
XYZxyz(28.6837, 16.9487, 47.0987)
Luminance0.1695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045B8 #4DB845
analogous
#7745B8 #B045B8 #B84587
triadic
#B045B8 #B8B045 #45B8B0
tetradic
#B045B8 #B87745 #4DB845 #4587B8
square
#B045B8 #B87745 #4DB845 #4587B8
split-complementary
#B045B8 #87B845 #45B877
monochromatic
#5B245F #85348B #B045B8 #C371CA #D69DDA

Accessibility & contrast

On white

4.78
#B045B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B045B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B045B8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045B8#FFFFFF#000000##FFFFFF
##B045B81.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316ABB
Deuteranopia (green-blind)
#5A77B5
Tritanopia (blue-blind)
#B45678
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b045b8;
/* rgb */ color: rgb(176, 69, 184);
/* oklch */ color: oklch(57.8% 0.196 324.9);
Tailwind
colors: {
  custom: {
    50: '#cb80ce',
    500: '#b045b8',
    950: '#000000',
  },
}
SCSS
$custom: #b045b8;
$custom-light: #cb80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b045b8",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 295.826,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57846,
    "c": 0.19555,
    "h": 324.9
  },
  "luminance": 0.16947
}

Semantic roles & 50–950 ramp

primary
#B045B8
secondary
#96C792
accent
#D5535C
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B13
muted
#827C82

Preview Lab

Preview with #B045B8

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

Preview Lab → · Contrast checker → · Palette generator →

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