#B581F2#B581F2

#B581F2 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.1% C 0.167 H 303.6°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#B581F2
RGBrgb(181, 129, 242)
HSLhsl(268, 81%, 73%)
HSVhsv(268, 47%, 95%)
CMYKcmyk(25.2%, 46.7%, 0%, 5.1%)
CIE-LABlab(63.29, 41.86, -49.51)
CIE-LCHlch(63.29, 64.84, 310.22°)
OKLaboklab(70.07% 0.0923 -0.1387)
OKLCHoklch(70.07% 0.167 303.6)
XYZxyz(42.9299, 31.9352, 87.8896)
Luminance0.3194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B581F2 #BEF281
analogous
#8185F2 #B581F2 #EE81F2
triadic
#B581F2 #F2B581 #81F2B5
tetradic
#B581F2 #F28185 #BEF281 #81F2EE
square
#B581F2 #F28185 #BEF281 #81F2EE
split-complementary
#B581F2 #F2EE81 #85F281
monochromatic
#7417E1 #944AEC #B581F2 #D6B8F8 #EFE3FC

Accessibility & contrast

On white

2.84
#B581F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#B581F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B581F2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B581F2#FFFFFF#000000##000000
##B581F21.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6198F6
Deuteranopia (green-blind)
#6E99EF
Tritanopia (blue-blind)
#AA95AE
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b581f2;
/* rgb */ color: rgb(181, 129, 242);
/* oklch */ color: oklch(70.1% 0.167 303.6);
Tailwind
colors: {
  custom: {
    50: '#cda6f7',
    500: '#b581f2',
    950: '#000000',
  },
}
SCSS
$custom: #b581f2;
$custom-light: #cda6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b581f2",
  "rgb": {
    "r": 181,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 267.611,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.70069,
    "c": 0.16659,
    "h": 303.6
  },
  "luminance": 0.31935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B581F2

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

Preview Lab → · Contrast checker → · Palette generator →

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