#B581F4#B581F4

#B581F4 is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.2% C 0.169 H 303.2°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#B581F4
RGBrgb(181, 129, 244)
HSLhsl(267, 84%, 73%)
HSVhsv(267, 47%, 96%)
CMYKcmyk(25.8%, 47.1%, 0%, 4.3%)
CIE-LABlab(63.39, 42.33, -50.46)
CIE-LCHlch(63.39, 65.86, 309.99°)
OKLaboklab(70.18% 0.0925 -0.1414)
OKLCHoklch(70.18% 0.169 303.2)
XYZxyz(43.2319, 32.0560, 89.4803)
Luminance0.3206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581F4 #C0F481
analogous
#8186F4 #B581F4 #EE81F4
triadic
#B581F4 #F4B581 #81F4B5
tetradic
#B581F4 #F48186 #C0F481 #81F4EE
square
#B581F4 #F48186 #C0F481 #81F4EE
split-complementary
#B581F4 #F4EE81 #86F481
monochromatic
#7314E6 #9449EF #B581F4 #D6B9F9 #EEE3FD

Accessibility & contrast

On white

2.83
#B581F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#B581F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581F4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581F4#FFFFFF#000000##000000
##B581F41.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6098F8
Deuteranopia (green-blind)
#6D99F1
Tritanopia (blue-blind)
#AA95AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b581f4;
/* rgb */ color: rgb(181, 129, 244);
/* oklch */ color: oklch(70.2% 0.169 303.2);
Tailwind
colors: {
  custom: {
    50: '#cea6f8',
    500: '#b581f4',
    950: '#000000',
  },
}
SCSS
$custom: #b581f4;
$custom-light: #cea6f8;
$custom-dark: #000000;
JSON
{
  "hex": "#b581f4",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 244
  },
  "hsl": {
    "h": 267.13,
    "s": 83.942,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70176,
    "c": 0.16902,
    "h": 303.2
  },
  "luminance": 0.32056
}

Semantic roles & 50–950 ramp

primary
#B581F4
secondary
#E7F4D7
accent
#E0057D
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B581F4

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

Preview Lab → · Contrast checker → · Palette generator →

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