#B371F5#B371F5

#B371F5 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.5% C 0.194 H 304.8°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#B371F5
RGBrgb(179, 113, 245)
HSLhsl(270, 87%, 70%)
HSVhsv(270, 54%, 96%)
CMYKcmyk(26.9%, 53.9%, 0%, 3.9%)
CIE-LABlab(59.88, 50.65, -56.60)
CIE-LCHlch(59.88, 75.96, 311.82°)
OKLaboklab(67.54% 0.1109 -0.1594)
OKLCHoklch(67.54% 0.194 304.8)
XYZxyz(40.9734, 27.9867, 89.6119)
Luminance0.2799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B371F5 #B3F571
analogous
#7171F5 #B371F5 #F571F5
triadic
#B371F5 #F5B371 #71F5B3
tetradic
#B371F5 #F57171 #B3F571 #71F5F5
square
#B371F5 #F57171 #B3F571 #71F5F5
split-complementary
#B371F5 #F5F571 #71F571
monochromatic
#7610DC #9438F1 #B371F5 #D2AAF9 #F0E2FD

Accessibility & contrast

On white

3.18
#B371F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#B371F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B371F5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B371F5#FFFFFF#000000##000000
##B371F51.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#438EF9
Deuteranopia (green-blind)
#5990F2
Tritanopia (blue-blind)
#A88AA8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b371f5;
/* rgb */ color: rgb(179, 113, 245);
/* oklch */ color: oklch(67.5% 0.194 304.8);
Tailwind
colors: {
  custom: {
    50: '#cd9cf9',
    500: '#b371f5',
    950: '#000000',
  },
}
SCSS
$custom: #b371f5;
$custom-light: #cd9cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b371f5",
  "rgb": {
    "r": 179,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 270,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67539,
    "c": 0.19421,
    "h": 304.8
  },
  "luminance": 0.27987
}

Semantic roles & 50–950 ramp

primary
#B371F5
secondary
#E1F3CF
accent
#E30273
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B371F5

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

Preview Lab → · Contrast checker → · Palette generator →

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