#B227BA#B227BA

#B227BA is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.6% C 0.232 H 325.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B227BA
RGBrgb(178, 39, 186)
HSLhsl(297, 65%, 44%)
HSVhsv(297, 79%, 73%)
CMYKcmyk(4.3%, 79%, 0%, 27.1%)
CIE-LABlab(44.89, 70.03, -46.98)
CIE-LCHlch(44.89, 84.33, 326.14°)
OKLaboklab(55.57% 0.1915 -0.1309)
OKLCHoklch(55.57% 0.232 325.6)
XYZxyz(27.9479, 14.4631, 47.7645)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227BA #2FBA27
analogous
#6927BA #B227BA #BA2779
triadic
#B227BA #BAB227 #27BAB2
tetradic
#B227BA #BA6927 #2FBA27 #2779BA
square
#B227BA #BA6927 #2FBA27 #2779BA
split-complementary
#B227BA #79BA27 #27BA69
monochromatic
#511255 #821C87 #B227BA #D046D8 #DD79E3

Accessibility & contrast

On white

5.40
#B227BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B227BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227BA
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227BA#FFFFFF#000000##FFFFFF
##B227BA1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#4A70B7
Tritanopia (blue-blind)
#B64371
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b227ba;
/* rgb */ color: rgb(178, 39, 186);
/* oklch */ color: oklch(55.6% 0.232 325.6);
Tailwind
colors: {
  custom: {
    50: '#cd73cf',
    500: '#b227ba',
    950: '#000000',
  },
}
SCSS
$custom: #b227ba;
$custom-light: #cd73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b227ba",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 296.735,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55574,
    "c": 0.23193,
    "h": 325.6
  },
  "luminance": 0.14461
}

Semantic roles & 50–950 ramp

primary
#B227BA
secondary
#77CB72
accent
#E84049
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B227BA

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

Preview Lab → · Contrast checker → · Palette generator →

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