#B181F2#B181F2

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

Color values

HEX#B181F2
RGBrgb(177, 129, 242)
HSLhsl(265, 81%, 73%)
HSVhsv(265, 47%, 95%)
CMYKcmyk(26.9%, 46.7%, 0%, 5.1%)
CIE-LABlab(62.89, 40.80, -50.17)
CIE-LCHlch(62.89, 64.66, 309.12°)
OKLaboklab(69.68% 0.0875 -0.1407)
OKLCHoklch(69.68% 0.166 301.9)
XYZxyz(42.0051, 31.4584, 87.8463)
Luminance0.3146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B181F2 #C2F281
analogous
#8189F2 #B181F2 #EA81F2
triadic
#B181F2 #F2B181 #81F2B1
tetradic
#B181F2 #F28189 #C2F281 #81F2EA
square
#B181F2 #F28189 #C2F281 #81F2EA
split-complementary
#B181F2 #F2EA81 #89F281
monochromatic
#6D17E1 #8F4AEC #B181F2 #D3B8F8 #EEE3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B181F2#FFFFFF#000000##000000
##B181F21.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)
#6097F6
Deuteranopia (green-blind)
#6B98EF
Tritanopia (blue-blind)
#A595AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b181f2;
/* rgb */ color: rgb(177, 129, 242);
/* oklch */ color: oklch(69.7% 0.166 301.9);
Tailwind
colors: {
  custom: {
    50: '#cba6f7',
    500: '#b181f2',
    950: '#000000',
  },
}
SCSS
$custom: #b181f2;
$custom-light: #cba6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b181f2",
  "rgb": {
    "r": 177,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 265.487,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69681,
    "c": 0.16568,
    "h": 301.9
  },
  "luminance": 0.31458
}

Semantic roles & 50–950 ramp

primary
#B181F2
secondary
#E8F4D7
accent
#DE0883
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B181F2

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

Preview Lab → · Contrast checker → · Palette generator →

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