#B22FA8#B22FA8

#B22FA8 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.211 H 331.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B22FA8
RGBrgb(178, 47, 168)
HSLhsl(305, 58%, 44%)
HSVhsv(305, 74%, 70%)
CMYKcmyk(0%, 73.6%, 5.6%, 30.2%)
CIE-LABlab(44.70, 64.78, -36.66)
CIE-LCHlch(44.70, 74.44, 330.49°)
OKLaboklab(55.11% 0.1851 -0.101)
OKLCHoklch(55.11% 0.211 331.4)
XYZxyz(26.4445, 14.3273, 38.4109)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FA8 #2FB239
analogous
#7B2FB2 #B22FA8 #B22F67
triadic
#B22FA8 #A8B22F #2FA8B2
tetradic
#B22FA8 #B27B2F #2FB239 #2F67B2
square
#B22FA8 #B27B2F #2FB239 #2F67B2
split-complementary
#B22FA8 #67B22F #2FB27B
monochromatic
#51154D #82227A #B22FA8 #D04EC6 #DD7ED6

Accessibility & contrast

On white

5.43
#B22FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B22FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FA8
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FA8#FFFFFF#000000##FFFFFF
##B22FA81.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAB
Deuteranopia (green-blind)
#5870A5
Tritanopia (blue-blind)
#B93F69
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22fa8;
/* rgb */ color: rgb(178, 47, 168);
/* oklch */ color: oklch(55.1% 0.211 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd75c2',
    500: '#b22fa8',
    950: '#000000',
  },
}
SCSS
$custom: #b22fa8;
$custom-light: #cd75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fa8",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 304.58,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55112,
    "c": 0.21083,
    "h": 331.4
  },
  "luminance": 0.14325
}

Semantic roles & 50–950 ramp

primary
#B22FA8
secondary
#77C67D
accent
#E15246
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B22FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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