#B251BA#B251BA

#B251BA is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.7% C 0.181 H 324.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B251BA
RGBrgb(178, 81, 186)
HSLhsl(295, 43%, 52%)
HSVhsv(295, 56%, 73%)
CMYKcmyk(4.3%, 56.5%, 0%, 27.1%)
CIE-LABlab(50.57, 54.13, -37.98)
CIE-LCHlch(50.57, 66.12, 324.95°)
OKLaboklab(59.67% 0.1474 -0.105)
OKLCHoklch(59.67% 0.181 324.5)
XYZxyz(30.1647, 18.8966, 48.5034)
Luminance0.1890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251BA #59BA51
analogous
#7E51BA #B251BA #BA518D
triadic
#B251BA #BAB251 #51BAB2
tetradic
#B251BA #BA7E51 #59BA51 #518DBA
square
#B251BA #BA7E51 #59BA51 #518DBA
split-complementary
#B251BA #8DBA51 #51BA7E
monochromatic
#632968 #8D3A93 #B251BA #C57DCB #D9A9DD

Accessibility & contrast

On white

4.39
#B251BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#B251BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251BA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251BA#FFFFFF#000000##000000
##B251BA1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4271BD
Deuteranopia (green-blind)
#627CB7
Tritanopia (blue-blind)
#B55F7E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b251ba;
/* rgb */ color: rgb(178, 81, 186);
/* oklch */ color: oklch(59.7% 0.181 324.5);
Tailwind
colors: {
  custom: {
    50: '#cc87cf',
    500: '#b251ba',
    950: '#000000',
  },
}
SCSS
$custom: #b251ba;
$custom-light: #cc87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b251ba",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 295.429,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59665,
    "c": 0.18098,
    "h": 324.5
  },
  "luminance": 0.18895
}

Semantic roles & 50–950 ramp

primary
#B251BA
secondary
#A0CA9D
accent
#D3555E
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140C14
muted
#827D82

Preview Lab

Preview with #B251BA

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

Preview Lab → · Contrast checker → · Palette generator →

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