#B045A2#B045A2

#B045A2 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.7% C 0.177 H 333.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B045A2
RGBrgb(176, 69, 162)
HSLhsl(308, 44%, 48%)
HSVhsv(308, 61%, 69%)
CMYKcmyk(0%, 60.8%, 8%, 31%)
CIE-LABlab(47.10, 54.88, -29.35)
CIE-LCHlch(47.10, 62.23, 331.86°)
OKLaboklab(56.69% 0.1579 -0.0801)
OKLCHoklch(56.69% 0.177 333.1)
XYZxyz(26.5543, 16.0970, 35.8838)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045A2 #45B053
analogous
#8845B0 #B045A2 #B0456D
triadic
#B045A2 #A2B045 #45A2B0
tetradic
#B045A2 #B08845 #45B053 #456DB0
square
#B045A2 #B08845 #45B053 #456DB0
split-complementary
#B045A2 #6DB045 #45B088
monochromatic
#582351 #84347A #B045A2 #C66DBA #D799CF

Accessibility & contrast

On white

4.98
#B045A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B045A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B045A2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045A2#FFFFFF#000000##FFFFFF
##B045A21.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#64759F
Tritanopia (blue-blind)
#B74D6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b045a2;
/* rgb */ color: rgb(176, 69, 162);
/* oklch */ color: oklch(56.7% 0.177 333.1);
Tailwind
colors: {
  custom: {
    50: '#ca7fbe',
    500: '#b045a2',
    950: '#000000',
  },
}
SCSS
$custom: #b045a2;
$custom-light: #ca7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b045a2",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 307.85,
    "s": 43.673,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56694,
    "c": 0.17709,
    "h": 333.1
  },
  "luminance": 0.16095
}

Semantic roles & 50–950 ramp

primary
#B045A2
secondary
#8EC395
accent
#D36554
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #B045A2

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

Preview Lab → · Contrast checker → · Palette generator →

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