#B381F2#B381F2

#B381F2 is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.9% C 0.166 H 302.8°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#B381F2
RGBrgb(179, 129, 242)
HSLhsl(267, 81%, 73%)
HSVhsv(267, 47%, 95%)
CMYKcmyk(26%, 46.7%, 0%, 5.1%)
CIE-LABlab(63.09, 41.33, -49.84)
CIE-LCHlch(63.09, 64.75, 309.67°)
OKLaboklab(69.87% 0.0899 -0.1397)
OKLCHoklch(69.87% 0.166 302.8)
XYZxyz(42.4641, 31.6950, 87.8678)
Luminance0.3170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B381F2 #C0F281
analogous
#8187F2 #B381F2 #EC81F2
triadic
#B381F2 #F2B381 #81F2B3
tetradic
#B381F2 #F28187 #C0F281 #81F2EC
square
#B381F2 #F28187 #C0F281 #81F2EC
split-complementary
#B381F2 #F2EC81 #87F281
monochromatic
#7117E1 #924AEC #B381F2 #D4B8F8 #EEE3FC

Accessibility & contrast

On white

2.86
#B381F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#B381F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B381F2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B381F2#FFFFFF#000000##000000
##B381F21.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6098F6
Deuteranopia (green-blind)
#6D98EF
Tritanopia (blue-blind)
#A895AE
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b381f2;
/* rgb */ color: rgb(179, 129, 242);
/* oklch */ color: oklch(69.9% 0.166 302.8);
Tailwind
colors: {
  custom: {
    50: '#cca6f7',
    500: '#b381f2',
    950: '#000000',
  },
}
SCSS
$custom: #b381f2;
$custom-light: #cca6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b381f2",
  "rgb": {
    "r": 179,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 266.549,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69874,
    "c": 0.16613,
    "h": 302.8
  },
  "luminance": 0.31695
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B381F2

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

Preview Lab → · Contrast checker → · Palette generator →

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