#B227A0#B227A0

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

Color values

HEX#B227A0
RGBrgb(178, 39, 160)
HSLhsl(308, 64%, 43%)
HSVhsv(308, 78%, 70%)
CMYKcmyk(0%, 78.1%, 10.1%, 30.2%)
CIE-LABlab(43.44, 65.97, -33.87)
CIE-LCHlch(43.44, 74.16, 332.82°)
OKLaboklab(54.08% 0.1918 -0.0928)
OKLCHoklch(54.08% 0.213 334.2)
XYZxyz(25.4310, 13.4564, 34.5089)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227A0 #27B239
analogous
#7F27B2 #B227A0 #B2275A
triadic
#B227A0 #A0B227 #27A0B2
tetradic
#B227A0 #B27F27 #27B239 #275AB2
square
#B227A0 #B27F27 #27B239 #275AB2
split-complementary
#B227A0 #5AB227 #27B27F
monochromatic
#4E1146 #801C73 #B227A0 #D541C2 #E073D2

Accessibility & contrast

On white

5.69
#B227A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B227A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227A0
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227A0#FFFFFF#000000##FFFFFF
##B227A01.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235AA3
Deuteranopia (green-blind)
#596E9D
Tritanopia (blue-blind)
#BB3562
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b227a0;
/* rgb */ color: rgb(178, 39, 160);
/* oklch */ color: oklch(54.1% 0.213 334.2);
Tailwind
colors: {
  custom: {
    50: '#cd72bc',
    500: '#b227a0',
    950: '#000000',
  },
}
SCSS
$custom: #b227a0;
$custom-light: #cd72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b227a0",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 307.77,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54076,
    "c": 0.21307,
    "h": 334.2
  },
  "luminance": 0.13454
}

Semantic roles & 50–950 ramp

primary
#B227A0
secondary
#6DC879
accent
#E75641
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B227A0

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

Preview Lab → · Contrast checker → · Palette generator →

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