#B338AC#B338AC

#B338AC is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.3% C 0.204 H 330.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#B338AC
RGBrgb(179, 56, 172)
HSLhsl(303, 52%, 46%)
HSVhsv(303, 69%, 70%)
CMYKcmyk(0%, 68.7%, 3.9%, 29.8%)
CIE-LABlab(46.17, 62.54, -36.70)
CIE-LCHlch(46.17, 72.52, 329.59°)
OKLaboklab(56.27% 0.1774 -0.1011)
OKLCHoklch(56.27% 0.204 330.3)
XYZxyz(27.4508, 15.3927, 40.5470)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338AC #38B33F
analogous
#7C38B3 #B338AC #B3386E
triadic
#B338AC #ACB338 #38ACB3
tetradic
#B338AC #B37C38 #38B33F #386EB3
square
#B338AC #B37C38 #38B33F #386EB3
split-complementary
#B338AC #6EB338 #38B37C
monochromatic
#561B52 #84297F #B338AC #CC5CC6 #DB8BD6

Accessibility & contrast

On white

5.15
#B338AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#B338AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338AC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338AC#FFFFFF#000000##FFFFFF
##B338AC1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D63AF
Deuteranopia (green-blind)
#5B73A9
Tritanopia (blue-blind)
#BA476E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b338ac;
/* rgb */ color: rgb(179, 56, 172);
/* oklch */ color: oklch(56.3% 0.204 330.3);
Tailwind
colors: {
  custom: {
    50: '#cd79c5',
    500: '#b338ac',
    950: '#000000',
  },
}
SCSS
$custom: #b338ac;
$custom-light: #cd79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b338ac",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 303.415,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56267,
    "c": 0.20415,
    "h": 330.3
  },
  "luminance": 0.15391
}

Semantic roles & 50–950 ramp

primary
#B338AC
secondary
#82C586
accent
#DC544C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338AC

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

Preview Lab → · Contrast checker → · Palette generator →

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