#B581F8#B581F8

#B581F8 is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.4% C 0.174 H 302.3°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#B581F8
RGBrgb(181, 129, 248)
HSLhsl(266, 89%, 74%)
HSVhsv(266, 48%, 97%)
CMYKcmyk(27%, 48%, 0%, 2.7%)
CIE-LABlab(63.59, 43.27, -52.34)
CIE-LCHlch(63.59, 67.91, 309.58°)
OKLaboklab(70.39% 0.093 -0.1469)
OKLCHoklch(70.39% 0.174 302.3)
XYZxyz(43.8458, 32.3016, 92.7136)
Luminance0.3230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581F8 #C4F881
analogous
#8189F8 #B581F8 #F081F8
triadic
#B581F8 #F8B581 #81F8B5
tetradic
#B581F8 #F88189 #C4F881 #81F8F0
square
#B581F8 #F88189 #C4F881 #81F8F0
split-complementary
#B581F8 #F8F081 #89F881
monochromatic
#710DF1 #9347F5 #B581F8 #D7BBFB #EEE2FD

Accessibility & contrast

On white

2.81
#B581F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#B581F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581F8
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581F8#FFFFFF#000000##000000
##B581F81.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D99FC
Deuteranopia (green-blind)
#6A9AF5
Tritanopia (blue-blind)
#A996B1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b581f8;
/* rgb */ color: rgb(181, 129, 248);
/* oklch */ color: oklch(70.4% 0.174 302.3);
Tailwind
colors: {
  custom: {
    50: '#cea7fb',
    500: '#b581f8',
    950: '#000000',
  },
}
SCSS
$custom: #b581f8;
$custom-light: #cea7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b581f8",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 266.218,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70393,
    "c": 0.17388,
    "h": 302.3
  },
  "luminance": 0.32302
}

Semantic roles & 50–950 ramp

primary
#B581F8
secondary
#E8F5D6
accent
#E60081
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B581F8

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

Preview Lab → · Contrast checker → · Palette generator →

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