#B22FA7#B22FA7

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

Color values

HEX#B22FA7
RGBrgb(178, 47, 167)
HSLhsl(305, 58%, 44%)
HSVhsv(305, 74%, 70%)
CMYKcmyk(0%, 73.6%, 6.2%, 30.2%)
CIE-LABlab(44.65, 64.63, -36.15)
CIE-LCHlch(44.65, 74.05, 330.78°)
OKLaboklab(55.06% 0.185 -0.0995)
OKLCHoklch(55.06% 0.21 331.7)
XYZxyz(26.3517, 14.2902, 37.9221)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FA7 #2FB23A
analogous
#7C2FB2 #B22FA7 #B22F66
triadic
#B22FA7 #A7B22F #2FA7B2
tetradic
#B22FA7 #B27C2F #2FB23A #2F66B2
square
#B22FA7 #B27C2F #2FB23A #2F66B2
split-complementary
#B22FA7 #66B22F #2FB27C
monochromatic
#51154C #82227A #B22FA7 #D04EC5 #DD7ED5

Accessibility & contrast

On white

5.44
#B22FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B22FA7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FA7#FFFFFF#000000##FFFFFF
##B22FA71.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255EAA
Deuteranopia (green-blind)
#5970A4
Tritanopia (blue-blind)
#B93E68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22fa7;
/* rgb */ color: rgb(178, 47, 167);
/* oklch */ color: oklch(55.1% 0.210 331.7);
Tailwind
colors: {
  custom: {
    50: '#cd75c1',
    500: '#b22fa7',
    950: '#000000',
  },
}
SCSS
$custom: #b22fa7;
$custom-light: #cd75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fa7",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 305.038,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55057,
    "c": 0.21009,
    "h": 331.7
  },
  "luminance": 0.14288
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B22FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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