#B281F0#B281F0

#B281F0 is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.7% C 0.163 H 302.8°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#B281F0
RGBrgb(178, 129, 240)
HSLhsl(266, 79%, 72%)
HSVhsv(266, 46%, 94%)
CMYKcmyk(25.8%, 46.3%, 0%, 5.9%)
CIE-LABlab(62.89, 40.59, -49.06)
CIE-LCHlch(62.89, 63.67, 309.61°)
OKLaboklab(69.67% 0.0885 -0.1374)
OKLCHoklch(69.67% 0.163 302.8)
XYZxyz(41.9351, 31.4568, 86.2837)
Luminance0.3146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281F0 #BFF081
analogous
#8188F0 #B281F0 #E981F0
triadic
#B281F0 #F0B281 #81F0B2
tetradic
#B281F0 #F08188 #BFF081 #81F0E9
square
#B281F0 #F08188 #BFF081 #81F0E9
split-complementary
#B281F0 #F0E981 #88F081
monochromatic
#701ADC #914AE9 #B281F0 #D3B8F7 #EEE4FC

Accessibility & contrast

On white

2.88
#B281F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#B281F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281F0
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281F0#FFFFFF#000000##000000
##B281F01.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6197F4
Deuteranopia (green-blind)
#6D98ED
Tritanopia (blue-blind)
#A794AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b281f0;
/* rgb */ color: rgb(178, 129, 240);
/* oklch */ color: oklch(69.7% 0.163 302.8);
Tailwind
colors: {
  custom: {
    50: '#cba6f5',
    500: '#b281f0',
    950: '#000000',
  },
}
SCSS
$custom: #b281f0;
$custom-light: #cba6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b281f0",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 240
  },
  "hsl": {
    "h": 266.486,
    "s": 78.723,
    "l": 72.353
  },
  "oklch": {
    "l": 0.6967,
    "c": 0.16344,
    "h": 302.8
  },
  "luminance": 0.31457
}

Semantic roles & 50–950 ramp

primary
#B281F0
secondary
#E7F4D7
accent
#DB0A7F
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#140F17
muted
#827F85

Preview Lab

Preview with #B281F0

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

Preview Lab → · Contrast checker → · Palette generator →

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