#B245AB#B245AB

#B245AB is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.4% C 0.186 H 330.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B245AB
RGBrgb(178, 69, 171)
HSLhsl(304, 44%, 48%)
HSVhsv(304, 61%, 70%)
CMYKcmyk(0%, 61.2%, 3.9%, 30.2%)
CIE-LABlab(47.83, 56.91, -33.50)
CIE-LCHlch(47.83, 66.04, 329.51°)
OKLaboklab(57.43% 0.1612 -0.092)
OKLCHoklch(57.43% 0.186 330.3)
XYZxyz(27.8387, 16.6634, 40.2703)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B245AB #45B24C
analogous
#8245B2 #B245AB #B24574
triadic
#B245AB #ABB245 #45ABB2
tetradic
#B245AB #B28245 #45B24C #4574B2
square
#B245AB #B28245 #45B24C #4574B2
split-complementary
#B245AB #74B245 #45B282
monochromatic
#5A2356 #863481 #B245AB #C76EC1 #D89AD4

Accessibility & contrast

On white

4.85
#B245AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B245AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B245AB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B245AB#FFFFFF#000000##FFFFFF
##B245AB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#B85072
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b245ab;
/* rgb */ color: rgb(178, 69, 171);
/* oklch */ color: oklch(57.4% 0.186 330.3);
Tailwind
colors: {
  custom: {
    50: '#cc80c4',
    500: '#b245ab',
    950: '#000000',
  },
}
SCSS
$custom: #b245ab;
$custom-light: #cc80c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b245ab",
  "rgb": {
    "r": 178,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 303.853,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57428,
    "c": 0.18562,
    "h": 330.3
  },
  "luminance": 0.16661
}

Semantic roles & 50–950 ramp

primary
#B245AB
secondary
#8FC492
accent
#D45C54
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #B245AB

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

Preview Lab → · Contrast checker → · Palette generator →

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