#B251D2#B251D2

#B251D2 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.0% C 0.204 H 316.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#B251D2
RGBrgb(178, 81, 210)
HSLhsl(285, 59%, 57%)
HSVhsv(285, 61%, 82%)
CMYKcmyk(15.2%, 61.4%, 0%, 17.6%)
CIE-LABlab(51.84, 58.76, -49.76)
CIE-LCHlch(51.84, 77.00, 319.74°)
OKLaboklab(61.01% 0.1486 -0.1393)
OKLCHoklch(61.01% 0.204 316.9)
XYZxyz(32.9337, 20.0042, 63.0867)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251D2 #71D251
analogous
#7251D2 #B251D2 #D251B2
triadic
#B251D2 #D2B251 #51D2B2
tetradic
#B251D2 #D27251 #71D251 #51B2D2
square
#B251D2 #D27251 #71D251 #51B2D2
split-complementary
#B251D2 #B2D251 #51D272
monochromatic
#6D2386 #952FB7 #B251D2 #C882DF #DDB2EB

Accessibility & contrast

On white

4.20
#B251D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#B251D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251D2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251D2#FFFFFF#000000##000000
##B251D21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2976D6
Deuteranopia (green-blind)
#537FCF
Tritanopia (blue-blind)
#B1678A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b251d2;
/* rgb */ color: rgb(178, 81, 210);
/* oklch */ color: oklch(61.0% 0.204 316.9);
Tailwind
colors: {
  custom: {
    50: '#cc87e0',
    500: '#b251d2',
    950: '#000000',
  },
}
SCSS
$custom: #b251d2;
$custom-light: #cc87e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b251d2",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 285.116,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61007,
    "c": 0.20368,
    "h": 316.9
  },
  "luminance": 0.20003
}

Semantic roles & 50–950 ramp

primary
#B251D2
secondary
#B2DAA5
accent
#E2466C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B251D2

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

Preview Lab → · Contrast checker → · Palette generator →

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