#B951F2#B951F2

#B951F2 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.8% C 0.237 H 311.1°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B951F2
RGBrgb(185, 81, 242)
HSLhsl(279, 86%, 63%)
HSVhsv(279, 67%, 95%)
CMYKcmyk(23.6%, 66.5%, 0%, 5.1%)
CIE-LABlab(54.67, 66.85, -63.24)
CIE-LCHlch(54.67, 92.03, 316.59°)
OKLaboklab(63.85% 0.1559 -0.1786)
OKLCHoklch(63.85% 0.237 311.1)
XYZxyz(38.9740, 22.6109, 86.2984)
Luminance0.2261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B951F2 #8AF251
analogous
#6851F2 #B951F2 #F251DA
triadic
#B951F2 #F2B951 #51F2B9
tetradic
#B951F2 #F26851 #8AF251 #51DAF2
square
#B951F2 #F26851 #8AF251 #51DAF2
split-complementary
#B951F2 #DAF251 #51F268
monochromatic
#7E0EBB #A218EE #B951F2 #D08AF6 #E7C3FB

Accessibility & contrast

On white

3.80
#B951F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#B951F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B951F2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B951F2#FFFFFF#000000##000000
##B951F21.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#3D85EE
Tritanopia (blue-blind)
#B2729B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b951f2;
/* rgb */ color: rgb(185, 81, 242);
/* oklch */ color: oklch(63.8% 0.237 311.1);
Tailwind
colors: {
  custom: {
    50: '#d289f7',
    500: '#b951f2',
    950: '#000000',
  },
}
SCSS
$custom: #b951f2;
$custom-light: #d289f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b951f2",
  "rgb": {
    "r": 185,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 278.758,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.6385,
    "c": 0.23705,
    "h": 311.1
  },
  "luminance": 0.2261
}

Semantic roles & 50–950 ramp

primary
#B951F2
secondary
#C7ECB3
accent
#E30352
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #B951F2

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

Preview Lab → · Contrast checker → · Palette generator →

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