#B0338D#B0338D

#B0338D is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.8% C 0.186 H 341.2°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B0338D
RGBrgb(176, 51, 141)
HSLhsl(317, 55%, 45%)
HSVhsv(317, 71%, 69%)
CMYKcmyk(0%, 71%, 19.9%, 31%)
CIE-LABlab(43.54, 58.93, -22.28)
CIE-LCHlch(43.54, 63.00, 339.29°)
OKLaboklab(53.79% 0.1762 -0.0599)
OKLCHoklch(53.79% 0.186 341.2)
XYZxyz(23.8967, 13.5232, 26.5459)
Luminance0.1352 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B0338D #33B056
analogous
#9533B0 #B0338D #B0334F
triadic
#B0338D #8DB033 #338DB0
tetradic
#B0338D #B09533 #33B056 #334FB0
square
#B0338D #B09533 #33B056 #334FB0
split-complementary
#B0338D #4FB033 #33B095
monochromatic
#511841 #812567 #B0338D #CD53AB #DB82C2

Accessibility & contrast

On white

5.67
#B0338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B0338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B0338D
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B0338D#FFFFFF#000000##FFFFFF
##B0338D1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5A90
Deuteranopia (green-blind)
#646E8A
Tritanopia (blue-blind)
#BB355C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b0338d;
/* rgb */ color: rgb(176, 51, 141);
/* oklch */ color: oklch(53.8% 0.186 341.2);
Tailwind
colors: {
  custom: {
    50: '#cb76ae',
    500: '#b0338d',
    950: '#000000',
  },
}
SCSS
$custom: #b0338d;
$custom-light: #cb76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b0338d",
  "rgb": {
    "r": 176,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 316.8,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53788,
    "c": 0.18614,
    "h": 341.2
  },
  "luminance": 0.13521
}

Semantic roles & 50–950 ramp

primary
#B0338D
secondary
#7BC48F
accent
#DE7349
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #B0338D

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

Preview Lab → · Contrast checker → · Palette generator →

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