#B251F7#B251F7

#B251F7 is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.4% C 0.240 H 307.7°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#B251F7
RGBrgb(178, 81, 247)
HSLhsl(275, 91%, 64%)
HSVhsv(275, 67%, 97%)
CMYKcmyk(27.9%, 67.2%, 0%, 3.1%)
CIE-LABlab(54.10, 66.48, -67.00)
CIE-LCHlch(54.10, 94.39, 314.78°)
OKLaboklab(63.35% 0.1467 -0.1898)
OKLCHoklch(63.35% 0.24 307.7)
XYZxyz(38.0875, 22.0658, 90.2303)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251F7 #96F751
analogous
#5F51F7 #B251F7 #F751E9
triadic
#B251F7 #F7B251 #51F7B2
tetradic
#B251F7 #F75F51 #96F751 #51E9F7
square
#B251F7 #F75F51 #96F751 #51E9F7
split-complementary
#B251F7 #E9F751 #51F75F
monochromatic
#7709C5 #9816F4 #B251F7 #CC8CFA #E6C6FC

Accessibility & contrast

On white

3.88
#B251F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#B251F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251F7
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251F7#FFFFFF#000000##000000
##B251F71.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#2982F3
Tritanopia (blue-blind)
#A7759E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b251f7;
/* rgb */ color: rgb(178, 81, 247);
/* oklch */ color: oklch(63.4% 0.240 307.7);
Tailwind
colors: {
  custom: {
    50: '#ce88fb',
    500: '#b251f7',
    950: '#000000',
  },
}
SCSS
$custom: #b251f7;
$custom-light: #ce88fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b251f7",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 247
  },
  "hsl": {
    "h": 275.06,
    "s": 91.209,
    "l": 64.314
  },
  "oklch": {
    "l": 0.63352,
    "c": 0.23988,
    "h": 307.7
  },
  "luminance": 0.22065
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B251F7

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

Preview Lab → · Contrast checker → · Palette generator →

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