#B291F2#B291F2

#B291F2 is a light, vivid violet. Relative luminance 0.361; OKLCH L 72.5% C 0.141 H 298.5°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#B291F2
RGBrgb(178, 145, 242)
HSLhsl(260, 79%, 76%)
HSVhsv(260, 40%, 95%)
CMYKcmyk(26.4%, 40.1%, 0%, 5.1%)
CIE-LABlab(66.62, 32.17, -44.29)
CIE-LCHlch(66.62, 54.74, 305.99°)
OKLaboklab(72.51% 0.0671 -0.1236)
OKLCHoklch(72.51% 0.141 298.5)
XYZxyz(44.5088, 36.1263, 88.6154)
Luminance0.3613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B291F2 #D1F291
analogous
#91A0F2 #B291F2 #E291F2
triadic
#B291F2 #F2B291 #91F2B2
tetradic
#B291F2 #F291A0 #D1F291 #91F2E2
square
#B291F2 #F291A0 #D1F291 #91F2E2
split-complementary
#B291F2 #F2E291 #A0F291
monochromatic
#6524E5 #8C5AEC #B291F2 #D8C8F8 #ECE4FC

Accessibility & contrast

On white

2.55
#B291F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#B291F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B291F2
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B291F2#FFFFFF#000000##000000
##B291F21.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A2F6
Deuteranopia (green-blind)
#7DA1EF
Tritanopia (blue-blind)
#A5A2B6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b291f2;
/* rgb */ color: rgb(178, 145, 242);
/* oklch */ color: oklch(72.5% 0.141 298.5);
Tailwind
colors: {
  custom: {
    50: '#cbb1f7',
    500: '#b291f2',
    950: '#000000',
  },
}
SCSS
$custom: #b291f2;
$custom-light: #cbb1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b291f2",
  "rgb": {
    "r": 178,
    "g": 145,
    "b": 242
  },
  "hsl": {
    "h": 260.412,
    "s": 78.862,
    "l": 75.882
  },
  "oklch": {
    "l": 0.72506,
    "c": 0.14068,
    "h": 298.5
  },
  "luminance": 0.36127
}

Semantic roles & 50–950 ramp

primary
#B291F2
secondary
#EAF4D7
accent
#DB0A94
background
#FCFAFF
surface
#F9F5FE
border
#D2CFD6
text
#131117
muted
#828085

Preview Lab

Preview with #B291F2

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

Preview Lab → · Contrast checker → · Palette generator →

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