#B27AFA#B27AFA

#B27AFA is a light, vivid violet. Relative luminance 0.303; OKLCH L 69.1% C 0.186 H 301.9°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#B27AFA
RGBrgb(178, 122, 250)
HSLhsl(266, 93%, 73%)
HSVhsv(266, 51%, 98%)
CMYKcmyk(28.8%, 51.2%, 0%, 2%)
CIE-LABlab(61.90, 46.78, -56.14)
CIE-LCHlch(61.90, 73.08, 309.80°)
OKLaboklab(69.1% 0.0986 -0.1581)
OKLCHoklch(69.1% 0.186 301.9)
XYZxyz(42.5710, 30.2861, 94.0270)
Luminance0.3029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B27AFA #C2FA7A
analogous
#7A82FA #B27AFA #F27AFA
triadic
#B27AFA #FAB27A #7AFAB2
tetradic
#B27AFA #FA7A82 #C2FA7A #7AFAF2
square
#B27AFA #FA7A82 #C2FA7A #7AFAF2
split-complementary
#B27AFA #FAF27A #82FA7A
monochromatic
#6E09F1 #903FF8 #B27AFA #D4B5FC #EEE2FE

Accessibility & contrast

On white

2.98
#B27AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#B27AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B27AFA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B27AFA#FFFFFF#000000##000000
##B27AFA1.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E95FE
Deuteranopia (green-blind)
#5E95F7
Tritanopia (blue-blind)
#A492AF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #b27afa;
/* rgb */ color: rgb(178, 122, 250);
/* oklch */ color: oklch(69.1% 0.186 301.9);
Tailwind
colors: {
  custom: {
    50: '#cca2fc',
    500: '#b27afa',
    950: '#000000',
  },
}
SCSS
$custom: #b27afa;
$custom-light: #cca2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#b27afa",
  "rgb": {
    "r": 178,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 266.25,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69099,
    "c": 0.18633,
    "h": 301.9
  },
  "luminance": 0.30286
}

Semantic roles & 50–950 ramp

primary
#B27AFA
secondary
#E8F6D5
accent
#E60081
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #B27AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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