#B227AA#B227AA

#B227AA is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.220 H 330.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B227AA
RGBrgb(178, 39, 170)
HSLhsl(303, 64%, 43%)
HSVhsv(303, 78%, 70%)
CMYKcmyk(0%, 78.1%, 4.5%, 30.2%)
CIE-LABlab(43.97, 67.48, -39.00)
CIE-LCHlch(43.97, 77.94, 329.97°)
OKLaboklab(54.63% 0.192 -0.1077)
OKLCHoklch(54.63% 0.22 330.7)
XYZxyz(26.3413, 13.8204, 39.3027)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227AA #27B22F
analogous
#7427B2 #B227AA #B22765
triadic
#B227AA #AAB227 #27AAB2
tetradic
#B227AA #B27427 #27B22F #2765B2
square
#B227AA #B27427 #27B22F #2765B2
split-complementary
#B227AA #65B227 #27B274
monochromatic
#4E114A #801C7A #B227AA #D541CD #E073DA

Accessibility & contrast

On white

5.58
#B227AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B227AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227AA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227AA#FFFFFF#000000##FFFFFF
##B227AA1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145CAD
Deuteranopia (green-blind)
#546EA7
Tritanopia (blue-blind)
#B93B68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b227aa;
/* rgb */ color: rgb(178, 39, 170);
/* oklch */ color: oklch(54.6% 0.220 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd72c4',
    500: '#b227aa',
    950: '#000000',
  },
}
SCSS
$custom: #b227aa;
$custom-light: #cd72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b227aa",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 303.453,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54628,
    "c": 0.22014,
    "h": 330.7
  },
  "luminance": 0.13818
}

Semantic roles & 50–950 ramp

primary
#B227AA
secondary
#6DC872
accent
#E74A41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B227AA

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

Preview Lab → · Contrast checker → · Palette generator →

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