#B22FA5#B22FA5

#B22FA5 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.209 H 332.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B22FA5
RGBrgb(178, 47, 165)
HSLhsl(306, 58%, 44%)
HSVhsv(306, 74%, 70%)
CMYKcmyk(0%, 73.6%, 7.3%, 30.2%)
CIE-LABlab(44.54, 64.32, -35.13)
CIE-LCHlch(44.54, 73.28, 331.36°)
OKLaboklab(54.95% 0.185 -0.0965)
OKLCHoklch(54.95% 0.209 332.4)
XYZxyz(26.1682, 14.2168, 36.9559)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FA5 #2FB23C
analogous
#7E2FB2 #B22FA5 #B22F64
triadic
#B22FA5 #A5B22F #2FA5B2
tetradic
#B22FA5 #B27E2F #2FB23C #2F64B2
square
#B22FA5 #B27E2F #2FB23C #2F64B2
split-complementary
#B22FA5 #64B22F #2FB27E
monochromatic
#51154B #822278 #B22FA5 #D04EC3 #DD7ED4

Accessibility & contrast

On white

5.46
#B22FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B22FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FA5
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FA5#FFFFFF#000000##FFFFFF
##B22FA51.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA8
Deuteranopia (green-blind)
#5A70A2
Tritanopia (blue-blind)
#BA3D67
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22fa5;
/* rgb */ color: rgb(178, 47, 165);
/* oklch */ color: oklch(54.9% 0.209 332.4);
Tailwind
colors: {
  custom: {
    50: '#cd75c0',
    500: '#b22fa5',
    950: '#000000',
  },
}
SCSS
$custom: #b22fa5;
$custom-light: #cd75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fa5",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 305.954,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54949,
    "c": 0.20862,
    "h": 332.4
  },
  "luminance": 0.14215
}

Semantic roles & 50–950 ramp

primary
#B22FA5
secondary
#77C67F
accent
#E15646
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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