#B251E8#B251E8

#B251E8 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.4% C 0.225 H 311.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B251E8
RGBrgb(178, 81, 232)
HSLhsl(279, 77%, 61%)
HSVhsv(279, 65%, 91%)
CMYKcmyk(23.3%, 65.1%, 0%, 9%)
CIE-LABlab(53.14, 63.28, -60.14)
CIE-LCHlch(53.14, 87.30, 316.46°)
OKLaboklab(62.36% 0.148 -0.1697)
OKLCHoklch(62.36% 0.225 311.1)
XYZxyz(35.8653, 21.1769, 78.5265)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251E8 #87E851
analogous
#6751E8 #B251E8 #E851D3
triadic
#B251E8 #E8B251 #51E8B2
tetradic
#B251E8 #E86751 #87E851 #51D3E8
square
#B251E8 #E86751 #87E851 #51D3E8
split-complementary
#B251E8 #D3E851 #51E867
monochromatic
#7416A8 #991DDE #B251E8 #CA87EF #E2BDF6

Accessibility & contrast

On white

4.01
#B251E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#B251E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251E8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251E8#FFFFFF#000000##000000
##B251E81.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AED
Deuteranopia (green-blind)
#3F81E5
Tritanopia (blue-blind)
#AB7096
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b251e8;
/* rgb */ color: rgb(178, 81, 232);
/* oklch */ color: oklch(62.4% 0.225 311.1);
Tailwind
colors: {
  custom: {
    50: '#cd88f0',
    500: '#b251e8',
    950: '#000000',
  },
}
SCSS
$custom: #b251e8;
$custom-light: #cd88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b251e8",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 278.543,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62364,
    "c": 0.22514,
    "h": 311.1
  },
  "luminance": 0.21176
}

Semantic roles & 50–950 ramp

primary
#B251E8
secondary
#C2E7AE
accent
#D90D56
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B251E8

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

Preview Lab → · Contrast checker → · Palette generator →

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