#B581F7#B581F7

#B581F7 is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.3% C 0.173 H 302.5°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#B581F7
RGBrgb(181, 129, 247)
HSLhsl(266, 88%, 74%)
HSVhsv(266, 48%, 97%)
CMYKcmyk(26.7%, 47.8%, 0%, 3.1%)
CIE-LABlab(63.54, 43.04, -51.87)
CIE-LCHlch(63.54, 67.40, 309.68°)
OKLaboklab(70.34% 0.0929 -0.1456)
OKLCHoklch(70.34% 0.173 302.5)
XYZxyz(43.6911, 32.2397, 91.8988)
Luminance0.3224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581F7 #C3F781
analogous
#8188F7 #B581F7 #F081F7
triadic
#B581F7 #F7B581 #81F7B5
tetradic
#B581F7 #F78188 #C3F781 #81F7F0
square
#B581F7 #F78188 #C3F781 #81F7F0
split-complementary
#B581F7 #F7F081 #88F781
monochromatic
#720FEE #9347F3 #B581F7 #D7BBFB #EEE2FD

Accessibility & contrast

On white

2.82
#B581F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#B581F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581F7
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581F7#FFFFFF#000000##000000
##B581F71.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E99FB
Deuteranopia (green-blind)
#6B9AF4
Tritanopia (blue-blind)
#A996B0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b581f7;
/* rgb */ color: rgb(181, 129, 247);
/* oklch */ color: oklch(70.3% 0.173 302.5);
Tailwind
colors: {
  custom: {
    50: '#cea7fa',
    500: '#b581f7',
    950: '#000000',
  },
}
SCSS
$custom: #b581f7;
$custom-light: #cea7fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b581f7",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 266.441,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70338,
    "c": 0.17267,
    "h": 302.5
  },
  "luminance": 0.3224
}

Semantic roles & 50–950 ramp

primary
#B581F7
secondary
#E7F5D6
accent
#E50180
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B581F7

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

Preview Lab → · Contrast checker → · Palette generator →

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