#B271F2#B271F2

#B271F2 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.3% C 0.191 H 305.1°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#B271F2
RGBrgb(178, 113, 242)
HSLhsl(270, 83%, 70%)
HSVhsv(270, 53%, 95%)
CMYKcmyk(26.4%, 53.3%, 0%, 5.1%)
CIE-LABlab(59.60, 49.71, -55.38)
CIE-LCHlch(59.60, 74.42, 311.91°)
OKLaboklab(67.26% 0.1096 -0.1559)
OKLCHoklch(67.26% 0.191 305.1)
XYZxyz(40.2888, 27.6863, 87.2087)
Luminance0.2769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B271F2 #B1F271
analogous
#7271F2 #B271F2 #F271F1
triadic
#B271F2 #F2B271 #71F2B2
tetradic
#B271F2 #F27271 #B1F271 #71F1F2
square
#B271F2 #F27271 #B1F271 #71F1F2
split-complementary
#B271F2 #F1F271 #71F272
monochromatic
#7514D5 #9439ED #B271F2 #D0A9F7 #EFE1FC

Accessibility & contrast

On white

3.21
#B271F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#B271F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B271F2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B271F2#FFFFFF#000000##000000
##B271F21.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#458EF6
Deuteranopia (green-blind)
#5A90EF
Tritanopia (blue-blind)
#A789A7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b271f2;
/* rgb */ color: rgb(178, 113, 242);
/* oklch */ color: oklch(67.3% 0.191 305.1);
Tailwind
colors: {
  custom: {
    50: '#cc9cf7',
    500: '#b271f2',
    950: '#000000',
  },
}
SCSS
$custom: #b271f2;
$custom-light: #cc9cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b271f2",
  "rgb": {
    "r": 178,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 270.233,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67261,
    "c": 0.19052,
    "h": 305.1
  },
  "luminance": 0.27686
}

Semantic roles & 50–950 ramp

primary
#B271F2
secondary
#DFF2CD
accent
#E00672
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B271F2

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

Preview Lab → · Contrast checker → · Palette generator →

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