#B281F9#B281F9

#B281F9 is a light, vivid violet. Relative luminance 0.320; OKLCH L 70.2% C 0.174 H 300.9°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#B281F9
RGBrgb(178, 129, 249)
HSLhsl(265, 91%, 74%)
HSVhsv(265, 48%, 98%)
CMYKcmyk(28.5%, 48.2%, 0%, 2.4%)
CIE-LABlab(63.35, 42.73, -53.29)
CIE-LCHlch(63.35, 68.31, 308.72°)
OKLaboklab(70.16% 0.0895 -0.1498)
OKLCHoklch(70.16% 0.174 300.9)
XYZxyz(43.3053, 32.0049, 93.5003)
Luminance0.3201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B281F9 #C8F981
analogous
#818CF9 #B281F9 #EE81F9
triadic
#B281F9 #F9B281 #81F9B2
tetradic
#B281F9 #F9818C #C8F981 #81F9EE
square
#B281F9 #F9818C #C8F981 #81F9EE
split-complementary
#B281F9 #F9EE81 #8CF981
monochromatic
#6B0CF3 #8E47F6 #B281F9 #D6BBFC #EDE2FE

Accessibility & contrast

On white

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

On black

7.40
#B281F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B281F9
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B281F9#FFFFFF#000000##000000
##B281F91.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B99FD
Deuteranopia (green-blind)
#6799F6
Tritanopia (blue-blind)
#A497B1
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b281f9;
/* rgb */ color: rgb(178, 129, 249);
/* oklch */ color: oklch(70.2% 0.174 300.9);
Tailwind
colors: {
  custom: {
    50: '#cca6fc',
    500: '#b281f9',
    950: '#000000',
  },
}
SCSS
$custom: #b281f9;
$custom-light: #cca6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b281f9",
  "rgb": {
    "r": 178,
    "g": 129,
    "b": 249
  },
  "hsl": {
    "h": 264.5,
    "s": 90.909,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70158,
    "c": 0.17449,
    "h": 300.9
  },
  "luminance": 0.32005
}

Semantic roles & 50–950 ramp

primary
#B281F9
secondary
#E8F6D5
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B281F9

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

Preview Lab → · Contrast checker → · Palette generator →

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