#B251EF#B251EF

#B251EF is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.8% C 0.232 H 309.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B251EF
RGBrgb(178, 81, 239)
HSLhsl(277, 83%, 63%)
HSVhsv(277, 66%, 94%)
CMYKcmyk(25.5%, 66.1%, 0%, 6.3%)
CIE-LABlab(53.58, 64.77, -63.37)
CIE-LCHlch(53.58, 90.61, 315.63°)
OKLaboklab(62.82% 0.1474 -0.1791)
OKLCHoklch(62.82% 0.232 309.5)
XYZxyz(36.8794, 21.5825, 83.8677)
Luminance0.2158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251EF #8EEF51
analogous
#6351EF #B251EF #EF51DD
triadic
#B251EF #EFB251 #51EFB2
tetradic
#B251EF #EF6351 #8EEF51 #51DDEF
square
#B251EF #EF6351 #8EEF51 #51DDEF
split-complementary
#B251EF #DDEF51 #51EF63
monochromatic
#7611B5 #9919EA #B251EF #CB89F4 #E4C1F9

Accessibility & contrast

On white

3.95
#B251EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#B251EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251EF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251EF#FFFFFF#000000##000000
##B251EF1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#3781EB
Tritanopia (blue-blind)
#A9729A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b251ef;
/* rgb */ color: rgb(178, 81, 239);
/* oklch */ color: oklch(62.8% 0.232 309.5);
Tailwind
colors: {
  custom: {
    50: '#cd88f5',
    500: '#b251ef',
    950: '#000000',
  },
}
SCSS
$custom: #b251ef;
$custom-light: #cd88f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b251ef",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 276.835,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62819,
    "c": 0.23201,
    "h": 309.5
  },
  "luminance": 0.21582
}

Semantic roles & 50–950 ramp

primary
#B251EF
secondary
#C7EAB1
accent
#E0065A
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B251EF

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

Preview Lab → · Contrast checker → · Palette generator →

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