#B226E3#B226E3

#B226E3 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 58.3% C 0.264 H 314.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B226E3
RGBrgb(178, 38, 227)
HSLhsl(284, 77%, 52%)
HSVhsv(284, 83%, 89%)
CMYKcmyk(21.6%, 83.3%, 0%, 11%)
CIE-LABlab(47.49, 77.45, -66.44)
CIE-LCHlch(47.49, 102.04, 319.37°)
OKLaboklab(58.26% 0.186 -0.1879)
OKLCHoklch(58.26% 0.264 314.7)
XYZxyz(32.9160, 16.3985, 74.0895)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B226E3 #57E326
analogous
#5326E3 #B226E3 #E326B6
triadic
#B226E3 #E3B226 #26E3B2
tetradic
#B226E3 #E35326 #57E326 #26B6E3
square
#B226E3 #E35326 #57E326 #26B6E3
split-complementary
#B226E3 #B6E326 #26E353
monochromatic
#62107E #8C17B5 #B226E3 #C55CEA #D892F1

Accessibility & contrast

On white

4.91
#B226E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B226E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B226E3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B226E3#FFFFFF#000000##FFFFFF
##B226E31.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E8
Deuteranopia (green-blind)
#1074DF
Tritanopia (blue-blind)
#AD5889
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b226e3;
/* rgb */ color: rgb(178, 38, 227);
/* oklch */ color: oklch(58.3% 0.264 314.7);
Tailwind
colors: {
  custom: {
    50: '#cf74ed',
    500: '#b226e3',
    950: '#000000',
  },
}
SCSS
$custom: #b226e3;
$custom-light: #cf74ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b226e3",
  "rgb": {
    "r": 178,
    "g": 38,
    "b": 227
  },
  "hsl": {
    "h": 284.444,
    "s": 77.143,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58256,
    "c": 0.2644,
    "h": 314.7
  },
  "luminance": 0.16397
}

Semantic roles & 50–950 ramp

primary
#B226E3
secondary
#9EDC89
accent
#F43466
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #B226E3

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

Preview Lab → · Contrast checker → · Palette generator →

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