#B251F6#B251F6

#B251F6 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.3% C 0.239 H 307.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B251F6
RGBrgb(178, 81, 246)
HSLhsl(275, 90%, 64%)
HSVhsv(275, 67%, 96%)
CMYKcmyk(27.6%, 67.1%, 0%, 3.5%)
CIE-LABlab(54.03, 66.27, -66.55)
CIE-LCHlch(54.03, 93.92, 314.88°)
OKLaboklab(63.29% 0.1468 -0.1885)
OKLCHoklch(63.29% 0.239 307.9)
XYZxyz(37.9336, 22.0042, 89.4198)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251F6 #95F651
analogous
#6051F6 #B251F6 #F651E7
triadic
#B251F6 #F6B251 #51F6B2
tetradic
#B251F6 #F66051 #95F651 #51E7F6
square
#B251F6 #F66051 #95F651 #51E7F6
split-complementary
#B251F6 #E7F651 #51F660
monochromatic
#770AC3 #9817F3 #B251F6 #CC8BF9 #E6C5FC

Accessibility & contrast

On white

3.89
#B251F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#B251F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251F6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251F6#FFFFFF#000000##000000
##B251F61.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFB
Deuteranopia (green-blind)
#2B82F2
Tritanopia (blue-blind)
#A7759D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b251f6;
/* rgb */ color: rgb(178, 81, 246);
/* oklch */ color: oklch(63.3% 0.239 307.9);
Tailwind
colors: {
  custom: {
    50: '#ce88fa',
    500: '#b251f6',
    950: '#000000',
  },
}
SCSS
$custom: #b251f6;
$custom-light: #ce88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b251f6",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 275.273,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63285,
    "c": 0.2389,
    "h": 307.9
  },
  "luminance": 0.22004
}

Semantic roles & 50–950 ramp

primary
#B251F6
secondary
#CCEEB5
accent
#E6005F
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B251F6

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

Preview Lab → · Contrast checker → · Palette generator →

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