#B581F9#B581F9

#B581F9 is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.4% C 0.175 H 302.1°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#B581F9
RGBrgb(181, 129, 249)
HSLhsl(266, 91%, 74%)
HSVhsv(266, 48%, 98%)
CMYKcmyk(27.3%, 48.2%, 0%, 2.4%)
CIE-LABlab(63.64, 43.51, -52.81)
CIE-LCHlch(63.64, 68.42, 309.48°)
OKLaboklab(70.45% 0.0931 -0.1483)
OKLCHoklch(70.45% 0.175 302.1)
XYZxyz(44.0014, 32.3638, 93.5329)
Luminance0.3236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581F9 #C5F981
analogous
#8189F9 #B581F9 #F181F9
triadic
#B581F9 #F9B581 #81F9B5
tetradic
#B581F9 #F98189 #C5F981 #81F9F1
square
#B581F9 #F98189 #C5F981 #81F9F1
split-complementary
#B581F9 #F9F181 #89F981
monochromatic
#700CF3 #9347F6 #B581F9 #D7BBFC #EEE2FE

Accessibility & contrast

On white

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

On black

7.47
#B581F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581F9
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581F9#FFFFFF#000000##000000
##B581F91.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C99FD
Deuteranopia (green-blind)
#6A9AF6
Tritanopia (blue-blind)
#A897B1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b581f9;
/* rgb */ color: rgb(181, 129, 249);
/* oklch */ color: oklch(70.4% 0.175 302.1);
Tailwind
colors: {
  custom: {
    50: '#cea7fc',
    500: '#b581f9',
    950: '#000000',
  },
}
SCSS
$custom: #b581f9;
$custom-light: #cea7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b581f9",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 249
  },
  "hsl": {
    "h": 266,
    "s": 90.909,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70447,
    "c": 0.17509,
    "h": 302.1
  },
  "luminance": 0.32364
}

Semantic roles & 50–950 ramp

primary
#B581F9
secondary
#E8F6D5
accent
#E60082
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B581F9

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

Preview Lab → · Contrast checker → · Palette generator →

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