#B22FA6#B22FA6

#B22FA6 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.0% C 0.209 H 332.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B22FA6
RGBrgb(178, 47, 166)
HSLhsl(305, 58%, 44%)
HSVhsv(305, 74%, 70%)
CMYKcmyk(0%, 73.6%, 6.7%, 30.2%)
CIE-LABlab(44.59, 64.47, -35.64)
CIE-LCHlch(44.59, 73.67, 331.07°)
OKLaboklab(55% 0.185 -0.098)
OKLCHoklch(55% 0.209 332.1)
XYZxyz(26.2596, 14.2533, 37.4371)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FA6 #2FB23B
analogous
#7D2FB2 #B22FA6 #B22F65
triadic
#B22FA6 #A6B22F #2FA6B2
tetradic
#B22FA6 #B27D2F #2FB23B #2F65B2
square
#B22FA6 #B27D2F #2FB23B #2F65B2
split-complementary
#B22FA6 #65B22F #2FB27D
monochromatic
#51154C #822279 #B22FA6 #D04EC4 #DD7ED4

Accessibility & contrast

On white

5.45
#B22FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B22FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FA6
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FA6#FFFFFF#000000##FFFFFF
##B22FA61.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265EA9
Deuteranopia (green-blind)
#5A70A3
Tritanopia (blue-blind)
#BA3E68
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22fa6;
/* rgb */ color: rgb(178, 47, 166);
/* oklch */ color: oklch(55.0% 0.209 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd75c1',
    500: '#b22fa6',
    950: '#000000',
  },
}
SCSS
$custom: #b22fa6;
$custom-light: #cd75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fa6",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 305.496,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55003,
    "c": 0.20935,
    "h": 332.1
  },
  "luminance": 0.14251
}

Semantic roles & 50–950 ramp

primary
#B22FA6
secondary
#77C67E
accent
#E15546
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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