#B251CC#B251CC

#B251CC is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.7% C 0.198 H 318.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B251CC
RGBrgb(178, 81, 204)
HSLhsl(287, 55%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(12.7%, 60.3%, 0%, 20%)
CIE-LABlab(51.51, 57.57, -46.86)
CIE-LCHlch(51.51, 74.24, 320.86°)
OKLaboklab(60.66% 0.1485 -0.1308)
OKLCHoklch(60.66% 0.198 318.6)
XYZxyz(32.2002, 19.7108, 59.2235)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251CC #6BCC51
analogous
#7451CC #B251CC #CC51A8
triadic
#B251CC #CCB251 #51CCB2
tetradic
#B251CC #CC7451 #6BCC51 #51A8CC
square
#B251CC #CC7451 #6BCC51 #51A8CC
split-complementary
#B251CC #A8CC51 #51CC74
monochromatic
#6B257E #9333AD #B251CC #C780DA #DCB0E8

Accessibility & contrast

On white

4.25
#B251CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#B251CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251CC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251CC#FFFFFF#000000##000000
##B251CC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3174D0
Deuteranopia (green-blind)
#587EC9
Tritanopia (blue-blind)
#B26587
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b251cc;
/* rgb */ color: rgb(178, 81, 204);
/* oklch */ color: oklch(60.7% 0.198 318.6);
Tailwind
colors: {
  custom: {
    50: '#cc87dc',
    500: '#b251cc',
    950: '#000000',
  },
}
SCSS
$custom: #b251cc;
$custom-light: #cc87dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b251cc",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 287.317,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60658,
    "c": 0.1979,
    "h": 318.6
  },
  "luminance": 0.19709
}

Semantic roles & 50–950 ramp

primary
#B251CC
secondary
#AED6A3
accent
#DE4A69
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B251CC

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

Preview Lab → · Contrast checker → · Palette generator →

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