#B251D8#B251D8

#B251D8 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.4% C 0.209 H 315.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B251D8
RGBrgb(178, 81, 216)
HSLhsl(283, 63%, 58%)
HSVhsv(283, 63%, 85%)
CMYKcmyk(17.6%, 62.5%, 0%, 15.3%)
CIE-LABlab(52.18, 59.97, -52.63)
CIE-LCHlch(52.18, 79.79, 318.73°)
OKLaboklab(61.37% 0.1486 -0.1477)
OKLCHoklch(61.37% 0.209 315.2)
XYZxyz(33.6952, 20.3088, 67.0975)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251D8 #77D851
analogous
#6E51D8 #B251D8 #D851BA
triadic
#B251D8 #D8B251 #51D8B2
tetradic
#B251D8 #D86E51 #77D851 #51BAD8
square
#B251D8 #D86E51 #77D851 #51BAD8
split-complementary
#B251D8 #BAD851 #51D86E
monochromatic
#6F208F #972BC1 #B251D8 #C883E3 #DEB5EE

Accessibility & contrast

On white

4.15
#B251D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#B251D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251D8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251D8#FFFFFF#000000##000000
##B251D81.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F77DC
Deuteranopia (green-blind)
#4F7FD5
Tritanopia (blue-blind)
#AF6A8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b251d8;
/* rgb */ color: rgb(178, 81, 216);
/* oklch */ color: oklch(61.4% 0.209 315.2);
Tailwind
colors: {
  custom: {
    50: '#cc88e5',
    500: '#b251d8',
    950: '#000000',
  },
}
SCSS
$custom: #b251d8;
$custom-light: #cc88e5;
$custom-dark: #000000;
JSON
{
  "hex": "#b251d8",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 283.111,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61366,
    "c": 0.20949,
    "h": 315.2
  },
  "luminance": 0.20308
}

Semantic roles & 50–950 ramp

primary
#B251D8
secondary
#B7DDA8
accent
#E64170
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B251D8

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

Preview Lab → · Contrast checker → · Palette generator →

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