#B281DC#B281DC

#B281DC is a light, vivid violet. Relative luminance 0.303; OKLCH L 68.6% C 0.139 H 307.9°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#B281DC
RGBrgb(178, 129, 220)
HSLhsl(272, 57%, 68%)
HSVhsv(272, 41%, 86%)
CMYKcmyk(19.1%, 41.4%, 0%, 13.7%)
CIE-LABlab(61.94, 35.99, -39.45)
CIE-LCHlch(61.94, 53.40, 312.38°)
OKLaboklab(68.65% 0.0854 -0.1096)
OKLCHoklch(68.65% 0.139 307.9)
XYZxyz(39.1261, 30.3332, 71.4900)
Luminance0.3033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281DC #ABDC81
analogous
#8481DC #B281DC #DC81D8
triadic
#B281DC #DCB281 #81DCB2
tetradic
#B281DC #DC8481 #ABDC81 #81D8DC
square
#B281DC #DC8481 #ABDC81 #81D8DC
split-complementary
#B281DC #D8DC81 #81DC84
monochromatic
#7631B1 #9551CF #B281DC #CFB1E9 #EDE1F7

Accessibility & contrast

On white

2.97
#B281DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#B281DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281DC
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281DC#FFFFFF#000000##000000
##B281DC1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D94DF
Deuteranopia (green-blind)
#7896DA
Tritanopia (blue-blind)
#AC8FA4
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b281dc;
/* rgb */ color: rgb(178, 129, 220);
/* oklch */ color: oklch(68.6% 0.139 307.9);
Tailwind
colors: {
  custom: {
    50: '#caa6e7',
    500: '#b281dc',
    950: '#000000',
  },
}
SCSS
$custom: #b281dc;
$custom-light: #caa6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b281dc",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 272.308,
    "s": 56.522,
    "l": 68.431
  },
  "oklch": {
    "l": 0.68646,
    "c": 0.13889,
    "h": 307.9
  },
  "luminance": 0.30333
}

Semantic roles & 50–950 ramp

primary
#B281DC
secondary
#DBEACF
accent
#C4216C
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #B281DC

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

Preview Lab → · Contrast checker → · Palette generator →

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