#B227A1#B227A1

#B227A1 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.214 H 333.8°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B227A1
RGBrgb(178, 39, 161)
HSLhsl(307, 64%, 43%)
HSVhsv(307, 78%, 70%)
CMYKcmyk(0%, 78.1%, 9.6%, 30.2%)
CIE-LABlab(43.49, 66.12, -34.39)
CIE-LCHlch(43.49, 74.53, 332.52°)
OKLaboklab(54.13% 0.1918 -0.0943)
OKLCHoklch(54.13% 0.214 333.8)
XYZxyz(25.5189, 13.4915, 34.9714)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227A1 #27B238
analogous
#7D27B2 #B227A1 #B2275C
triadic
#B227A1 #A1B227 #27A1B2
tetradic
#B227A1 #B27D27 #27B238 #275CB2
square
#B227A1 #B27D27 #27B238 #275CB2
split-complementary
#B227A1 #5CB227 #27B27D
monochromatic
#4E1146 #801C74 #B227A1 #D541C3 #E073D3

Accessibility & contrast

On white

5.68
#B227A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B227A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227A1
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227A1#FFFFFF#000000##FFFFFF
##B227A11.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA4
Deuteranopia (green-blind)
#596E9E
Tritanopia (blue-blind)
#BA3663
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b227a1;
/* rgb */ color: rgb(178, 39, 161);
/* oklch */ color: oklch(54.1% 0.214 333.8);
Tailwind
colors: {
  custom: {
    50: '#cd72bd',
    500: '#b227a1',
    950: '#000000',
  },
}
SCSS
$custom: #b227a1;
$custom-light: #cd72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b227a1",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 307.338,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5413,
    "c": 0.21375,
    "h": 333.8
  },
  "luminance": 0.13489
}

Semantic roles & 50–950 ramp

primary
#B227A1
secondary
#6DC878
accent
#E75541
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B227A1

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

Preview Lab → · Contrast checker → · Palette generator →

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