#B045B2#B045B2

#B045B2 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.190 H 327.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B045B2
RGBrgb(176, 69, 178)
HSLhsl(299, 44%, 48%)
HSVhsv(299, 61%, 70%)
CMYKcmyk(1.1%, 61.2%, 0%, 30.2%)
CIE-LABlab(47.88, 57.60, -37.56)
CIE-LCHlch(47.88, 68.77, 326.89°)
OKLaboklab(57.52% 0.1596 -0.1038)
OKLCHoklch(57.52% 0.19 327)
XYZxyz(28.0680, 16.7025, 43.8564)
Luminance0.1670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045B2 #47B245
analogous
#7945B2 #B045B2 #B2457D
triadic
#B045B2 #B2B045 #45B2B0
tetradic
#B045B2 #B27945 #47B245 #457DB2
square
#B045B2 #B27945 #47B245 #457DB2
split-complementary
#B045B2 #7DB245 #45B279
monochromatic
#59235A #843486 #B045B2 #C56EC7 #D79AD8

Accessibility & contrast

On white

4.84
#B045B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B045B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B045B2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045B2#FFFFFF#000000##FFFFFF
##B045B21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#5D76AF
Tritanopia (blue-blind)
#B55375
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b045b2;
/* rgb */ color: rgb(176, 69, 178);
/* oklch */ color: oklch(57.5% 0.190 327.0);
Tailwind
colors: {
  custom: {
    50: '#cb80c9',
    500: '#b045b2',
    950: '#000000',
  },
}
SCSS
$custom: #b045b2;
$custom-light: #cb80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b045b2",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 298.899,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57518,
    "c": 0.19036,
    "h": 327
  },
  "luminance": 0.16701
}

Semantic roles & 50–950 ramp

primary
#B045B2
secondary
#90C48F
accent
#D45456
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B045B2

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

Preview Lab → · Contrast checker → · Palette generator →

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