#B227A3#B227A3

#B227A3 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.215 H 333.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B227A3
RGBrgb(178, 39, 163)
HSLhsl(306, 64%, 43%)
HSVhsv(306, 78%, 70%)
CMYKcmyk(0%, 78.1%, 8.4%, 30.2%)
CIE-LABlab(43.60, 66.42, -35.42)
CIE-LCHlch(43.60, 75.27, 331.93°)
OKLaboklab(54.24% 0.1919 -0.0973)
OKLCHoklch(54.24% 0.215 333.1)
XYZxyz(25.6966, 13.5626, 35.9077)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227A3 #27B236
analogous
#7C27B2 #B227A3 #B2275D
triadic
#B227A3 #A3B227 #27A3B2
tetradic
#B227A3 #B27C27 #27B236 #275DB2
square
#B227A3 #B27C27 #27B236 #275DB2
split-complementary
#B227A3 #5DB227 #27B27C
monochromatic
#4E1147 #801C75 #B227A3 #D541C5 #E073D5

Accessibility & contrast

On white

5.66
#B227A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B227A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227A3
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227A3#FFFFFF#000000##FFFFFF
##B227A31.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA6
Deuteranopia (green-blind)
#586EA0
Tritanopia (blue-blind)
#BA3764
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b227a3;
/* rgb */ color: rgb(178, 39, 163);
/* oklch */ color: oklch(54.2% 0.215 333.1);
Tailwind
colors: {
  custom: {
    50: '#cd72be',
    500: '#b227a3',
    950: '#000000',
  },
}
SCSS
$custom: #b227a3;
$custom-light: #cd72be;
$custom-dark: #000000;
JSON
{
  "hex": "#b227a3",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 306.475,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54238,
    "c": 0.21515,
    "h": 333.1
  },
  "luminance": 0.1356
}

Semantic roles & 50–950 ramp

primary
#B227A3
secondary
#6DC877
accent
#E75341
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B227A3

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

Preview Lab → · Contrast checker → · Palette generator →

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