#B225E2#B225E2

#B225E2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 58.1% C 0.264 H 315.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B225E2
RGBrgb(178, 37, 226)
HSLhsl(285, 77%, 52%)
HSVhsv(285, 84%, 89%)
CMYKcmyk(21.2%, 83.6%, 0%, 11.4%)
CIE-LABlab(47.34, 77.50, -66.12)
CIE-LCHlch(47.34, 101.88, 319.53°)
OKLaboklab(58.13% 0.1868 -0.187)
OKLCHoklch(58.13% 0.264 315)
XYZxyz(32.7468, 16.2804, 73.3542)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B225E2 #55E225
analogous
#5425E2 #B225E2 #E225B4
triadic
#B225E2 #E2B225 #25E2B2
tetradic
#B225E2 #E25425 #55E225 #25B4E2
square
#B225E2 #E25425 #55E225 #25B4E2
split-complementary
#B225E2 #B4E225 #25E254
monochromatic
#61117C #8B18B2 #B225E2 #C55BE9 #D891F0

Accessibility & contrast

On white

4.93
#B225E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B225E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B225E2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B225E2#FFFFFF#000000##FFFFFF
##B225E21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#1274DE
Tritanopia (blue-blind)
#AE5788
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b225e2;
/* rgb */ color: rgb(178, 37, 226);
/* oklch */ color: oklch(58.1% 0.264 315.0);
Tailwind
colors: {
  custom: {
    50: '#cf74ec',
    500: '#b225e2',
    950: '#000000',
  },
}
SCSS
$custom: #b225e2;
$custom-light: #cf74ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b225e2",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 226
  },
  "hsl": {
    "h": 284.762,
    "s": 76.518,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58127,
    "c": 0.26432,
    "h": 315
  },
  "luminance": 0.16279
}

Semantic roles & 50–950 ramp

primary
#B225E2
secondary
#9DDB88
accent
#F33565
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#150916
muted
#837B84

Preview Lab

Preview with #B225E2

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

Preview Lab → · Contrast checker → · Palette generator →

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