#B22FC9#B22FC9

#B22FC9 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.1% C 0.236 H 321.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B22FC9
RGBrgb(178, 47, 201)
HSLhsl(291, 62%, 49%)
HSVhsv(291, 77%, 79%)
CMYKcmyk(11.4%, 76.6%, 0%, 21.2%)
CIE-LABlab(46.60, 70.29, -52.98)
CIE-LCHlch(46.60, 88.02, 323.00°)
OKLaboklab(57.08% 0.1839 -0.1485)
OKLCHoklch(57.08% 0.236 321.1)
XYZxyz(29.9180, 15.7167, 56.7048)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FC9 #46C92F
analogous
#652FC9 #B22FC9 #C92F93
triadic
#B22FC9 #C9B22F #2FC9B2
tetradic
#B22FC9 #C9652F #46C92F #2F93C9
square
#B22FC9 #C9652F #46C92F #2F93C9
split-complementary
#B22FC9 #93C92F #2FC965
monochromatic
#5A1866 #862397 #B22FC9 #C65CD9 #D88EE5

Accessibility & contrast

On white

5.07
#B22FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B22FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FC9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FC9#FFFFFF#000000##FFFFFF
##B22FC91.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#4273C6
Tritanopia (blue-blind)
#B34F7B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b22fc9;
/* rgb */ color: rgb(178, 47, 201);
/* oklch */ color: oklch(57.1% 0.236 321.1);
Tailwind
colors: {
  custom: {
    50: '#cd76da',
    500: '#b22fc9',
    950: '#000000',
  },
}
SCSS
$custom: #b22fc9;
$custom-light: #cd76da;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fc9",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 291.039,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57079,
    "c": 0.23637,
    "h": 321.1
  },
  "luminance": 0.15715
}

Semantic roles & 50–950 ramp

primary
#B22FC9
secondary
#90CF85
accent
#E5435B
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B22FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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