#B227B3#B227B3

#B227B3 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.2% C 0.227 H 327.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B227B3
RGBrgb(178, 39, 179)
HSLhsl(300, 64%, 43%)
HSVhsv(300, 78%, 70%)
CMYKcmyk(0.6%, 78.2%, 0%, 29.8%)
CIE-LABlab(44.48, 68.89, -43.52)
CIE-LCHlch(44.48, 81.49, 327.72°)
OKLaboklab(55.15% 0.1919 -0.1208)
OKLCHoklch(55.15% 0.227 327.8)
XYZxyz(27.2219, 14.1727, 43.9409)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B227B3 #28B327
analogous
#6C27B3 #B227B3 #B3276E
triadic
#B227B3 #B3B227 #27B3B2
tetradic
#B227B3 #B36C27 #28B327 #276EB3
square
#B227B3 #B36C27 #28B327 #276EB3
split-complementary
#B227B3 #6EB327 #27B36C
monochromatic
#4E114E #801C81 #B227B3 #D541D6 #E074E1

Accessibility & contrast

On white

5.48
#B227B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B227B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B227B3
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B227B3#FFFFFF#000000##FFFFFF
##B227B31.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#4F6FB0
Tritanopia (blue-blind)
#B8406D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b227b3;
/* rgb */ color: rgb(178, 39, 179);
/* oklch */ color: oklch(55.2% 0.227 327.8);
Tailwind
colors: {
  custom: {
    50: '#cd72ca',
    500: '#b227b3',
    950: '#000000',
  },
}
SCSS
$custom: #b227b3;
$custom-light: #cd72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b227b3",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 299.571,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.55151,
    "c": 0.22671,
    "h": 327.8
  },
  "luminance": 0.14171
}

Semantic roles & 50–950 ramp

primary
#B227B3
secondary
#6FC86E
accent
#E74142
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B227B3

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

Preview Lab → · Contrast checker → · Palette generator →

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