#B22FB8#B22FB8

#B22FB8 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.223 H 326.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B22FB8
RGBrgb(178, 47, 184)
HSLhsl(297, 59%, 45%)
HSVhsv(297, 74%, 72%)
CMYKcmyk(3.3%, 74.5%, 0%, 27.8%)
CIE-LABlab(45.58, 67.37, -44.71)
CIE-LCHlch(45.58, 80.86, 326.43°)
OKLaboklab(56.03% 0.1851 -0.1243)
OKLCHoklch(56.03% 0.223 326.1)
XYZxyz(28.0278, 14.9606, 46.7496)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FB8 #35B82F
analogous
#6D2FB8 #B22FB8 #B82F7A
triadic
#B22FB8 #B8B22F #2FB8B2
tetradic
#B22FB8 #B86D2F #35B82F #2F7AB8
square
#B22FB8 #B86D2F #35B82F #2F7AB8
split-complementary
#B22FB8 #7AB82F #2FB86D
monochromatic
#541657 #832387 #B22FB8 #CD52D3 #DB82DF

Accessibility & contrast

On white

5.26
#B22FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B22FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FB8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FB8#FFFFFF#000000##FFFFFF
##B22FB81.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BC
Deuteranopia (green-blind)
#4F71B5
Tritanopia (blue-blind)
#B74772
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b22fb8;
/* rgb */ color: rgb(178, 47, 184);
/* oklch */ color: oklch(56.0% 0.223 326.1);
Tailwind
colors: {
  custom: {
    50: '#cd76ce',
    500: '#b22fb8',
    950: '#000000',
  },
}
SCSS
$custom: #b22fb8;
$custom-light: #cd76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fb8",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 297.372,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56027,
    "c": 0.22296,
    "h": 326.1
  },
  "luminance": 0.14959
}

Semantic roles & 50–950 ramp

primary
#B22FB8
secondary
#7EC87B
accent
#E2454C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B22FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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