#B281EF#B281EF

#B281EF is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.6% C 0.162 H 303.0°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#B281EF
RGBrgb(178, 129, 239)
HSLhsl(267, 77%, 72%)
HSVhsv(267, 46%, 94%)
CMYKcmyk(25.5%, 46%, 0%, 6.3%)
CIE-LABlab(62.84, 40.36, -48.58)
CIE-LCHlch(62.84, 63.16, 309.72°)
OKLaboklab(69.62% 0.0883 -0.1361)
OKLCHoklch(69.62% 0.162 303)
XYZxyz(41.7869, 31.3975, 85.5035)
Luminance0.3140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281EF #BEEF81
analogous
#8187EF #B281EF #E981EF
triadic
#B281EF #EFB281 #81EFB2
tetradic
#B281EF #EF8187 #BEEF81 #81EFE9
square
#B281EF #EF8187 #BEEF81 #81EFE9
split-complementary
#B281EF #EFE981 #87EF81
monochromatic
#701CDA #914BE8 #B281EF #D3B7F6 #EEE4FC

Accessibility & contrast

On white

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

On black

7.28
#B281EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281EF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281EF#FFFFFF#000000##000000
##B281EF1.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6297F3
Deuteranopia (green-blind)
#6E98EC
Tritanopia (blue-blind)
#A794AD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b281ef;
/* rgb */ color: rgb(178, 129, 239);
/* oklch */ color: oklch(69.6% 0.162 303.0);
Tailwind
colors: {
  custom: {
    50: '#cba6f5',
    500: '#b281ef',
    950: '#000000',
  },
}
SCSS
$custom: #b281ef;
$custom-light: #cba6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b281ef",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 266.727,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69617,
    "c": 0.16221,
    "h": 303
  },
  "luminance": 0.31397
}

Semantic roles & 50–950 ramp

primary
#B281EF
secondary
#E7F3D8
accent
#DA0C7E
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#140F17
muted
#827F85

Preview Lab

Preview with #B281EF

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

Preview Lab → · Contrast checker → · Palette generator →

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