#B338A6#B338A6

#B338A6 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.200 H 332.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B338A6
RGBrgb(179, 56, 166)
HSLhsl(306, 52%, 46%)
HSVhsv(306, 69%, 70%)
CMYKcmyk(0%, 68.7%, 7.3%, 29.8%)
CIE-LABlab(45.86, 61.58, -33.63)
CIE-LCHlch(45.86, 70.16, 331.36°)
OKLaboklab(55.95% 0.177 -0.0923)
OKLCHoklch(55.95% 0.2 332.5)
XYZxyz(26.8876, 15.1674, 37.5805)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338A6 #38B345
analogous
#8238B3 #B338A6 #B33869
triadic
#B338A6 #A6B338 #38A6B3
tetradic
#B338A6 #B38238 #38B345 #3869B3
square
#B338A6 #B38238 #38B345 #3869B3
split-complementary
#B338A6 #69B338 #38B382
monochromatic
#561B50 #84297B #B338A6 #CC5CC0 #DB8BD2

Accessibility & contrast

On white

5.21
#B338A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B338A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338A6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338A6#FFFFFF#000000##FFFFFF
##B338A61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3261A9
Deuteranopia (green-blind)
#5E73A3
Tritanopia (blue-blind)
#BB446A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b338a6;
/* rgb */ color: rgb(179, 56, 166);
/* oklch */ color: oklch(55.9% 0.200 332.5);
Tailwind
colors: {
  custom: {
    50: '#cd79c1',
    500: '#b338a6',
    950: '#000000',
  },
}
SCSS
$custom: #b338a6;
$custom-light: #cd79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b338a6",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 166
  },
  "hsl": {
    "h": 306.341,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55948,
    "c": 0.19956,
    "h": 332.5
  },
  "luminance": 0.15165
}

Semantic roles & 50–950 ramp

primary
#B338A6
secondary
#82C589
accent
#DC5B4C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B338A6

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

Preview Lab → · Contrast checker → · Palette generator →

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