#B051F2#B051F2

#B051F2 is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.8% C 0.234 H 308.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B051F2
RGBrgb(176, 81, 242)
HSLhsl(275, 86%, 63%)
HSVhsv(275, 67%, 95%)
CMYKcmyk(27.3%, 66.5%, 0%, 5.1%)
CIE-LABlab(53.52, 65.00, -65.15)
CIE-LCHlch(53.52, 92.03, 314.93°)
OKLaboklab(62.78% 0.1447 -0.1845)
OKLCHoklch(62.78% 0.234 308.1)
XYZxyz(36.8706, 21.5263, 86.1998)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B051F2 #93F251
analogous
#5F51F2 #B051F2 #F251E3
triadic
#B051F2 #F2B051 #51F2B0
tetradic
#B051F2 #F25F51 #93F251 #51E3F2
square
#B051F2 #F25F51 #93F251 #51E3F2
split-complementary
#B051F2 #E3F251 #51F25F
monochromatic
#740EBB #9618EE #B051F2 #CA8AF6 #E4C3FB

Accessibility & contrast

On white

3.96
#B051F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#B051F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B051F2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B051F2#FFFFFF#000000##000000
##B051F21.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#2F81EE
Tritanopia (blue-blind)
#A6749B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b051f2;
/* rgb */ color: rgb(176, 81, 242);
/* oklch */ color: oklch(62.8% 0.234 308.1);
Tailwind
colors: {
  custom: {
    50: '#cc88f7',
    500: '#b051f2',
    950: '#000000',
  },
}
SCSS
$custom: #b051f2;
$custom-light: #cc88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b051f2",
  "rgb": {
    "r": 176,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 275.404,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62783,
    "c": 0.23441,
    "h": 308.1
  },
  "luminance": 0.21526
}

Semantic roles & 50–950 ramp

primary
#B051F2
secondary
#CAECB3
accent
#E3035F
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B051F2

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

Preview Lab → · Contrast checker → · Palette generator →

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