#B227A8#B227A8

#B227A8 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.219 H 331.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#B227A8
RGBrgb(178, 39, 168)
HSLhsl(304, 64%, 43%)
HSVhsv(304, 78%, 70%)
CMYKcmyk(0%, 78.1%, 5.6%, 30.2%)
CIE-LABlab(43.87, 67.17, -37.98)
CIE-LCHlch(43.87, 77.17, 330.51°)
OKLaboklab(54.52% 0.192 -0.1047)
OKLCHoklch(54.52% 0.219 331.4)
XYZxyz(26.1535, 13.7453, 38.3139)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227A8 #27B231
analogous
#7727B2 #B227A8 #B22762
triadic
#B227A8 #A8B227 #27A8B2
tetradic
#B227A8 #B27727 #27B231 #2762B2
square
#B227A8 #B27727 #27B231 #2762B2
split-complementary
#B227A8 #62B227 #27B277
monochromatic
#4E1149 #801C79 #B227A8 #D541CB #E073D8

Accessibility & contrast

On white

5.60
#B227A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#B227A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227A8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227A8#FFFFFF#000000##FFFFFF
##B227A81.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185BAB
Deuteranopia (green-blind)
#556EA5
Tritanopia (blue-blind)
#B93A67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b227a8;
/* rgb */ color: rgb(178, 39, 168);
/* oklch */ color: oklch(54.5% 0.219 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd72c2',
    500: '#b227a8',
    950: '#000000',
  },
}
SCSS
$custom: #b227a8;
$custom-light: #cd72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b227a8",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 304.317,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54515,
    "c": 0.2187,
    "h": 331.4
  },
  "luminance": 0.13743
}

Semantic roles & 50–950 ramp

primary
#B227A8
secondary
#6DC874
accent
#E74D41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B227A8

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

Preview Lab → · Contrast checker → · Palette generator →

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