#B271DF#B271DF

#B271DF is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.2% C 0.169 H 309.8°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#B271DF
RGBrgb(178, 113, 223)
HSLhsl(275, 63%, 66%)
HSVhsv(275, 49%, 87%)
CMYKcmyk(20.2%, 49.3%, 0%, 12.5%)
CIE-LABlab(58.61, 45.41, -46.38)
CIE-LCHlch(58.61, 64.91, 314.40°)
OKLaboklab(66.2% 0.108 -0.1296)
OKLCHoklch(66.2% 0.169 309.8)
XYZxyz(37.5820, 26.6036, 72.9529)
Luminance0.2660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271DF #9EDF71
analogous
#7B71DF #B271DF #DF71D5
triadic
#B271DF #DFB271 #71DFB2
tetradic
#B271DF #DF7B71 #9EDF71 #71D5DF
square
#B271DF #DF7B71 #9EDF71 #71D5DF
split-complementary
#B271DF #D5DF71 #71DF7B
monochromatic
#7727AE #973FD4 #B271DF #CDA3EA #E8D5F6

Accessibility & contrast

On white

3.32
#B271DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#B271DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271DF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271DF#FFFFFF#000000##000000
##B271DF1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#558AE3
Deuteranopia (green-blind)
#688EDC
Tritanopia (blue-blind)
#AC839E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b271df;
/* rgb */ color: rgb(178, 113, 223);
/* oklch */ color: oklch(66.2% 0.169 309.8);
Tailwind
colors: {
  custom: {
    50: '#cb9be9',
    500: '#b271df',
    950: '#000000',
  },
}
SCSS
$custom: #b271df;
$custom-light: #cb9be9;
$custom-dark: #000000;
JSON
{
  "hex": "#b271df",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 275.455,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.66198,
    "c": 0.16871,
    "h": 309.8
  },
  "luminance": 0.26603
}

Semantic roles & 50–950 ramp

primary
#B271DF
secondary
#D3E8C4
accent
#CB1B63
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B271DF

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

Preview Lab → · Contrast checker → · Palette generator →

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