#B251EC#B251EC

#B251EC is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.6% C 0.229 H 310.1°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B251EC
RGBrgb(178, 81, 236)
HSLhsl(278, 80%, 62%)
HSVhsv(278, 66%, 93%)
CMYKcmyk(24.6%, 65.7%, 0%, 7.5%)
CIE-LABlab(53.39, 64.13, -61.99)
CIE-LCHlch(53.39, 89.19, 315.97°)
OKLaboklab(62.62% 0.1477 -0.1751)
OKLCHoklch(62.62% 0.229 310.1)
XYZxyz(36.4399, 21.4067, 81.5529)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251EC #8BEC51
analogous
#6451EC #B251EC #EC51D9
triadic
#B251EC #ECB251 #51ECB2
tetradic
#B251EC #EC6451 #8BEC51 #51D9EC
square
#B251EC #EC6451 #8BEC51 #51D9EC
split-complementary
#B251EC #D9EC51 #51EC64
monochromatic
#7513AF #9A1AE6 #B251EC #CA88F2 #E3BFF8

Accessibility & contrast

On white

3.98
#B251EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#B251EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251EC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251EC#FFFFFF#000000##000000
##B251EC1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#3B81E9
Tritanopia (blue-blind)
#AA7198
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b251ec;
/* rgb */ color: rgb(178, 81, 236);
/* oklch */ color: oklch(62.6% 0.229 310.1);
Tailwind
colors: {
  custom: {
    50: '#cd88f3',
    500: '#b251ec',
    950: '#000000',
  },
}
SCSS
$custom: #b251ec;
$custom-light: #cd88f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b251ec",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 277.548,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62623,
    "c": 0.22906,
    "h": 310.1
  },
  "luminance": 0.21406
}

Semantic roles & 50–950 ramp

primary
#B251EC
secondary
#C5E9B0
accent
#DD0958
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B251EC

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

Preview Lab → · Contrast checker → · Palette generator →

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