#B8338E#B8338E

#B8338E is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.1% C 0.192 H 343.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B8338E
RGBrgb(184, 51, 142)
HSLhsl(319, 57%, 46%)
HSVhsv(319, 72%, 72%)
CMYKcmyk(0%, 72.3%, 22.8%, 27.8%)
CIE-LABlab(44.96, 61.12, -20.59)
CIE-LCHlch(44.96, 64.50, 341.39°)
OKLaboklab(55.1% 0.1841 -0.055)
OKLCHoklch(55.1% 0.192 343.4)
XYZxyz(25.8344, 14.5137, 27.0268)
Luminance0.1451 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8338E #33B85D
analogous
#9F33B8 #B8338E #B8334B
triadic
#B8338E #8EB833 #338EB8
tetradic
#B8338E #B89F33 #33B85D #334BB8
square
#B8338E #B89F33 #33B85D #334BB8
split-complementary
#B8338E #4BB833 #33B89F
monochromatic
#581844 #882669 #B8338E #D158AA #DE88C3

Accessibility & contrast

On white

5.38
#B8338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B8338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8338E
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8338E#FFFFFF#000000##FFFFFF
##B8338E1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415C91
Deuteranopia (green-blind)
#6A728B
Tritanopia (blue-blind)
#C4335C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b8338e;
/* rgb */ color: rgb(184, 51, 142);
/* oklch */ color: oklch(55.1% 0.192 343.4);
Tailwind
colors: {
  custom: {
    50: '#d177af',
    500: '#b8338e',
    950: '#000000',
  },
}
SCSS
$custom: #b8338e;
$custom-light: #d177af;
$custom-dark: #000000;
JSON
{
  "hex": "#b8338e",
  "rgb": {
    "r": 184,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 318.947,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55095,
    "c": 0.19214,
    "h": 343.4
  },
  "luminance": 0.14511
}

Semantic roles & 50–950 ramp

primary
#B8338E
secondary
#7FC896
accent
#E07848
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B8338E

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

Preview Lab → · Contrast checker → · Palette generator →

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