#B2259F#B2259F

#B2259F is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.214 H 334.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B2259F
RGBrgb(178, 37, 159)
HSLhsl(308, 66%, 42%)
HSVhsv(308, 79%, 70%)
CMYKcmyk(0%, 79.2%, 10.7%, 30.2%)
CIE-LABlab(43.20, 66.37, -33.65)
CIE-LCHlch(43.20, 74.41, 333.11°)
OKLaboklab(53.89% 0.1933 -0.0922)
OKLCHoklch(53.89% 0.214 334.5)
XYZxyz(25.2800, 13.2936, 34.0287)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2259F #25B238
analogous
#7F25B2 #B2259F #B22559
triadic
#B2259F #9FB225 #259FB2
tetradic
#B2259F #B27F25 #25B238 #2559B2
square
#B2259F #B27F25 #25B238 #2559B2
split-complementary
#B2259F #59B225 #25B27F
monochromatic
#4D1044 #7F1A72 #B2259F #D73DC2 #E170D2

Accessibility & contrast

On white

5.74
#B2259F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B2259F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2259F
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2259F#FFFFFF#000000##FFFFFF
##B2259F1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A2
Deuteranopia (green-blind)
#596D9C
Tritanopia (blue-blind)
#BB3361
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b2259f;
/* rgb */ color: rgb(178, 37, 159);
/* oklch */ color: oklch(53.9% 0.214 334.5);
Tailwind
colors: {
  custom: {
    50: '#cd71bc',
    500: '#b2259f',
    950: '#000000',
  },
}
SCSS
$custom: #b2259f;
$custom-light: #cd71bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b2259f",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 308.085,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53887,
    "c": 0.21419,
    "h": 334.5
  },
  "luminance": 0.13291
}

Semantic roles & 50–950 ramp

primary
#B2259F
secondary
#6BC877
accent
#E9563F
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B2259F

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

Preview Lab → · Contrast checker → · Palette generator →

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