#B338AD#B338AD

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

Color values

HEX#B338AD
RGBrgb(179, 56, 173)
HSLhsl(303, 52%, 46%)
HSVhsv(303, 69%, 70%)
CMYKcmyk(0%, 68.7%, 3.4%, 29.8%)
CIE-LABlab(46.22, 62.70, -37.21)
CIE-LCHlch(46.22, 72.91, 329.31°)
OKLaboklab(56.32% 0.1774 -0.1026)
OKLCHoklch(56.32% 0.205 330)
XYZxyz(27.5472, 15.4312, 41.0547)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338AD #38B33E
analogous
#7B38B3 #B338AD #B3386F
triadic
#B338AD #ADB338 #38ADB3
tetradic
#B338AD #B37B38 #38B33E #386FB3
square
#B338AD #B37B38 #38B33E #386FB3
split-complementary
#B338AD #6FB338 #38B37B
monochromatic
#561B53 #842980 #B338AD #CC5CC7 #DB8BD7

Accessibility & contrast

On white

5.14
#B338AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B338AD
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338AD#FFFFFF#000000##FFFFFF
##B338AD1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b338ad;
/* rgb */ color: rgb(179, 56, 173);
/* oklch */ color: oklch(56.3% 0.205 330.0);
Tailwind
colors: {
  custom: {
    50: '#cd79c6',
    500: '#b338ad',
    950: '#000000',
  },
}
SCSS
$custom: #b338ad;
$custom-light: #cd79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#b338ad",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 302.927,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.20493,
    "h": 330
  },
  "luminance": 0.15429
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B338AD

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

Preview Lab → · Contrast checker → · Palette generator →

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