#B281F2#B281F2

#B281F2 is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.8% C 0.166 H 302.3°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#B281F2
RGBrgb(178, 129, 242)
HSLhsl(266, 81%, 73%)
HSVhsv(266, 47%, 95%)
CMYKcmyk(26.4%, 46.7%, 0%, 5.1%)
CIE-LABlab(62.99, 41.06, -50.00)
CIE-LCHlch(62.99, 64.70, 309.39°)
OKLaboklab(69.78% 0.0887 -0.1402)
OKLCHoklch(69.78% 0.166 302.3)
XYZxyz(42.2338, 31.5763, 87.8570)
Luminance0.3158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281F2 #C1F281
analogous
#8188F2 #B281F2 #EB81F2
triadic
#B281F2 #F2B281 #81F2B2
tetradic
#B281F2 #F28188 #C1F281 #81F2EB
square
#B281F2 #F28188 #C1F281 #81F2EB
split-complementary
#B281F2 #F2EB81 #88F281
monochromatic
#6F17E1 #904AEC #B281F2 #D4B8F8 #EEE3FC

Accessibility & contrast

On white

2.87
#B281F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#B281F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281F2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281F2#FFFFFF#000000##000000
##B281F21.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6097F6
Deuteranopia (green-blind)
#6C98EF
Tritanopia (blue-blind)
#A695AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b281f2;
/* rgb */ color: rgb(178, 129, 242);
/* oklch */ color: oklch(69.8% 0.166 302.3);
Tailwind
colors: {
  custom: {
    50: '#cba6f7',
    500: '#b281f2',
    950: '#000000',
  },
}
SCSS
$custom: #b281f2;
$custom-light: #cba6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b281f2",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 266.018,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69777,
    "c": 0.16589,
    "h": 302.3
  },
  "luminance": 0.31576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B281F2

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

Preview Lab → · Contrast checker → · Palette generator →

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