#B045C2#B045C2

#B045C2 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.4% C 0.204 H 321.6°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#B045C2
RGBrgb(176, 69, 194)
HSLhsl(291, 51%, 52%)
HSVhsv(291, 64%, 76%)
CMYKcmyk(9.3%, 64.4%, 0%, 23.9%)
CIE-LABlab(48.74, 60.51, -45.53)
CIE-LCHlch(48.74, 75.72, 323.04°)
OKLaboklab(58.41% 0.1602 -0.1269)
OKLCHoklch(58.41% 0.204 321.6)
XYZxyz(29.7692, 17.3829, 52.8157)
Luminance0.1738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045C2 #57C245
analogous
#7245C2 #B045C2 #C24596
triadic
#B045C2 #C2B045 #45C2B0
tetradic
#B045C2 #C27245 #57C245 #4596C2
square
#B045C2 #C27245 #57C245 #4596C2
split-complementary
#B045C2 #96C245 #45C272
monochromatic
#60236A #893298 #B045C2 #C473D1 #D7A1E0

Accessibility & contrast

On white

4.69
#B045C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B045C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B045C2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045C2#FFFFFF#000000##FFFFFF
##B045C21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256CC6
Deuteranopia (green-blind)
#5478BF
Tritanopia (blue-blind)
#B2597E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b045c2;
/* rgb */ color: rgb(176, 69, 194);
/* oklch */ color: oklch(58.4% 0.204 321.6);
Tailwind
colors: {
  custom: {
    50: '#cb80d5',
    500: '#b045c2',
    950: '#000000',
  },
}
SCSS
$custom: #b045c2;
$custom-light: #cb80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b045c2",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 291.36,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58415,
    "c": 0.20439,
    "h": 321.6
  },
  "luminance": 0.17381
}

Semantic roles & 50–950 ramp

primary
#B045C2
secondary
#9ECD96
accent
#DA4E62
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B045C2

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

Preview Lab → · Contrast checker → · Palette generator →

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