#B277F6#B277F6

#B277F6 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.4% C 0.186 H 303.3°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#B277F6
RGBrgb(178, 119, 246)
HSLhsl(268, 88%, 72%)
HSVhsv(268, 52%, 96%)
CMYKcmyk(27.6%, 51.6%, 0%, 3.5%)
CIE-LABlab(61.06, 47.45, -55.28)
CIE-LCHlch(61.06, 72.85, 310.64°)
OKLaboklab(68.4% 0.1022 -0.1556)
OKLCHoklch(68.4% 0.186 303.3)
XYZxyz(41.5878, 29.3125, 90.6378)
Luminance0.2931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B277F6 #BBF677
analogous
#777CF6 #B277F6 #F277F6
triadic
#B277F6 #F6B277 #77F6B2
tetradic
#B277F6 #F6777C #BBF677 #77F6F2
square
#B277F6 #F6777C #BBF677 #77F6F2
split-complementary
#B277F6 #F6F277 #7CF677
monochromatic
#720FE4 #923EF2 #B277F6 #D3B0FA #EFE2FD

Accessibility & contrast

On white

3.06
#B277F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#B277F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B277F6
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B277F6#FFFFFF#000000##000000
##B277F61.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C92FA
Deuteranopia (green-blind)
#5E93F3
Tritanopia (blue-blind)
#A68FAB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b277f6;
/* rgb */ color: rgb(178, 119, 246);
/* oklch */ color: oklch(68.4% 0.186 303.3);
Tailwind
colors: {
  custom: {
    50: '#cca0fa',
    500: '#b277f6',
    950: '#000000',
  },
}
SCSS
$custom: #b277f6;
$custom-light: #cca0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b277f6",
  "rgb": {
    "r": 178,
    "g": 119,
    "b": 246
  },
  "hsl": {
    "h": 267.874,
    "s": 87.586,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68404,
    "c": 0.18613,
    "h": 303.3
  },
  "luminance": 0.29312
}

Semantic roles & 50–950 ramp

primary
#B277F6
secondary
#E6F5D4
accent
#E4017B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F17
muted
#827E85

Preview Lab

Preview with #B277F6

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

Preview Lab → · Contrast checker → · Palette generator →

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