#B338BD#B338BD

#B338BD is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.218 H 324.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B338BD
RGBrgb(179, 56, 189)
HSLhsl(295, 54%, 48%)
HSVhsv(295, 70%, 74%)
CMYKcmyk(5.3%, 70.4%, 0%, 25.9%)
CIE-LABlab(47.09, 65.40, -45.22)
CIE-LCHlch(47.09, 79.51, 325.34°)
OKLaboklab(57.23% 0.1776 -0.1258)
OKLCHoklch(57.23% 0.218 324.7)
XYZxyz(29.1892, 16.0880, 49.7021)
Luminance0.1609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338BD #42BD38
analogous
#7138BD #B338BD #BD3884
triadic
#B338BD #BDB338 #38BDB3
tetradic
#B338BD #BD7138 #42BD38 #3884BD
square
#B338BD #BD7138 #42BD38 #3884BD
split-complementary
#B338BD #84BD38 #38BD71
monochromatic
#5A1C5F #862A8E #B338BD #C862D0 #D991DE

Accessibility & contrast

On white

4.98
#B338BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B338BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338BD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338BD#FFFFFF#000000##FFFFFF
##B338BD1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1266C1
Deuteranopia (green-blind)
#5275BA
Tritanopia (blue-blind)
#B74E77
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b338bd;
/* rgb */ color: rgb(179, 56, 189);
/* oklch */ color: oklch(57.2% 0.218 324.7);
Tailwind
colors: {
  custom: {
    50: '#cd7ad1',
    500: '#b338bd',
    950: '#000000',
  },
}
SCSS
$custom: #b338bd;
$custom-light: #cd7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b338bd",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 295.489,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.21768,
    "h": 324.7
  },
  "luminance": 0.16086
}

Semantic roles & 50–950 ramp

primary
#B338BD
secondary
#8CC987
accent
#DE4A55
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B338BD

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

Preview Lab → · Contrast checker → · Palette generator →

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