#B151E4#B151E4

#B151E4 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 62.0% C 0.221 H 311.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B151E4
RGBrgb(177, 81, 228)
HSLhsl(279, 73%, 61%)
HSVhsv(279, 64%, 89%)
CMYKcmyk(22.4%, 64.5%, 0%, 10.6%)
CIE-LABlab(52.77, 62.23, -58.50)
CIE-LCHlch(52.77, 85.41, 316.77°)
OKLaboklab(61.99% 0.147 -0.1649)
OKLCHoklch(61.99% 0.221 311.7)
XYZxyz(35.0749, 20.8343, 75.5575)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B151E4 #84E451
analogous
#6851E4 #B151E4 #E451CD
triadic
#B151E4 #E4B151 #51E4B1
tetradic
#B151E4 #E46851 #84E451 #51CDE4
square
#B151E4 #E46851 #84E451 #51CDE4
split-complementary
#B151E4 #CDE451 #51E468
monochromatic
#7219A2 #9821D7 #B151E4 #C986EC #E0BBF4

Accessibility & contrast

On white

4.06
#B151E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#B151E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B151E4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B151E4#FFFFFF#000000##000000
##B151E41.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#4380E1
Tritanopia (blue-blind)
#AB6E94
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b151e4;
/* rgb */ color: rgb(177, 81, 228);
/* oklch */ color: oklch(62.0% 0.221 311.7);
Tailwind
colors: {
  custom: {
    50: '#cc88ed',
    500: '#b151e4',
    950: '#000000',
  },
}
SCSS
$custom: #b151e4;
$custom-light: #cc88ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b151e4",
  "rgb": {
    "r": 177,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 279.184,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61988,
    "c": 0.22088,
    "h": 311.7
  },
  "luminance": 0.20833
}

Semantic roles & 50–950 ramp

primary
#B151E4
secondary
#C0E4AC
accent
#D51055
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B151E4

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

Preview Lab → · Contrast checker → · Palette generator →

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