#B338AE#B338AE

#B338AE is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.206 H 329.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B338AE
RGBrgb(179, 56, 174)
HSLhsl(302, 52%, 46%)
HSVhsv(302, 69%, 70%)
CMYKcmyk(0%, 68.7%, 2.8%, 29.8%)
CIE-LABlab(46.27, 62.87, -37.72)
CIE-LCHlch(46.27, 73.31, 329.04°)
OKLaboklab(56.38% 0.1774 -0.1041)
OKLCHoklch(56.38% 0.206 329.6)
XYZxyz(27.6444, 15.4701, 41.5662)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338AE #38B33D
analogous
#7A38B3 #B338AE #B33870
triadic
#B338AE #AEB338 #38AEB3
tetradic
#B338AE #B37A38 #38B33D #3870B3
square
#B338AE #B37A38 #38B33D #3870B3
split-complementary
#B338AE #70B338 #38B37A
monochromatic
#561B53 #842981 #B338AE #CC5CC8 #DB8BD7

Accessibility & contrast

On white

5.13
#B338AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B338AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338AE
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338AE#FFFFFF#000000##FFFFFF
##B338AE1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B1
Deuteranopia (green-blind)
#5A73AB
Tritanopia (blue-blind)
#B9486F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b338ae;
/* rgb */ color: rgb(179, 56, 174);
/* oklch */ color: oklch(56.4% 0.206 329.6);
Tailwind
colors: {
  custom: {
    50: '#cd79c6',
    500: '#b338ae',
    950: '#000000',
  },
}
SCSS
$custom: #b338ae;
$custom-light: #cd79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#b338ae",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 302.439,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56376,
    "c": 0.2057,
    "h": 329.6
  },
  "luminance": 0.15468
}

Semantic roles & 50–950 ramp

primary
#B338AE
secondary
#82C585
accent
#DC524C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338AE

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

Preview Lab → · Contrast checker → · Palette generator →

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