#B2A2F7#B2A2F7

#B2A2F7 is a light, vivid violet. Relative luminance 0.420; OKLCH L 75.8% C 0.121 H 291.9°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#B2A2F7
RGBrgb(178, 162, 247)
HSLhsl(251, 84%, 80%)
HSVhsv(251, 34%, 97%)
CMYKcmyk(27.9%, 34.4%, 0%, 3.1%)
CIE-LABlab(70.88, 23.85, -40.34)
CIE-LCHlch(70.88, 46.86, 300.59°)
OKLaboklab(75.83% 0.0451 -0.1122)
OKLCHoklch(75.83% 0.121 291.9)
XYZxyz(48.0648, 42.0202, 93.5561)
Luminance0.4202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A2F7 #E7F7A2
analogous
#A2BCF7 #B2A2F7 #DCA2F7
triadic
#B2A2F7 #F7B2A2 #A2F7B2
tetradic
#B2A2F7 #F7A2BC #E7F7A2 #A2F7DC
square
#B2A2F7 #F7A2BC #E7F7A2 #A2F7DC
split-complementary
#B2A2F7 #F7DCA2 #BCF7A2
monochromatic
#5531ED #836AF2 #B2A2F7 #E1DAFC #E8E3FD

Accessibility & contrast

On white

2.23
#B2A2F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#B2A2F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A2F7
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A2F7#FFFFFF#000000##000000
##B2A2F71.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAFFA
Deuteranopia (green-blind)
#8CACF5
Tritanopia (blue-blind)
#A3B1C1
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2a2f7;
/* rgb */ color: rgb(178, 162, 247);
/* oklch */ color: oklch(75.8% 0.121 291.9);
Tailwind
colors: {
  custom: {
    50: '#cabdfa',
    500: '#b2a2f7',
    950: '#000000',
  },
}
SCSS
$custom: #b2a2f7;
$custom-light: #cabdfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a2f7",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 247
  },
  "hsl": {
    "h": 251.294,
    "s": 84.158,
    "l": 80.196
  },
  "oklch": {
    "l": 0.75828,
    "c": 0.12095,
    "h": 291.9
  },
  "luminance": 0.42021
}

Semantic roles & 50–950 ramp

primary
#B2A2F7
secondary
#EFF5D6
accent
#E105B7
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #B2A2F7

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

Preview Lab → · Contrast checker → · Palette generator →

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