#B338B7#B338B7

#B338B7 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.213 H 326.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B338B7
RGBrgb(179, 56, 183)
HSLhsl(298, 53%, 47%)
HSVhsv(298, 69%, 72%)
CMYKcmyk(2.2%, 69.4%, 0%, 28.2%)
CIE-LABlab(46.75, 64.37, -42.25)
CIE-LCHlch(46.75, 76.99, 326.72°)
OKLaboklab(56.88% 0.1777 -0.1172)
OKLCHoklch(56.88% 0.213 326.6)
XYZxyz(28.5513, 15.8329, 46.3428)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338B7 #3CB738
analogous
#7438B7 #B338B7 #B7387C
triadic
#B338B7 #B7B338 #38B7B3
tetradic
#B338B7 #B77438 #3CB738 #387CB7
square
#B338B7 #B77438 #3CB738 #387CB7
split-complementary
#B338B7 #7CB738 #38B774
monochromatic
#571B59 #852A88 #B338B7 #CA5ECE #DA8DDC

Accessibility & contrast

On white

5.04
#B338B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B338B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338B7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338B7#FFFFFF#000000##FFFFFF
##B338B71.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BB
Deuteranopia (green-blind)
#5574B4
Tritanopia (blue-blind)
#B84C74
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b338b7;
/* rgb */ color: rgb(179, 56, 183);
/* oklch */ color: oklch(56.9% 0.213 326.6);
Tailwind
colors: {
  custom: {
    50: '#cd7acd',
    500: '#b338b7',
    950: '#000000',
  },
}
SCSS
$custom: #b338b7;
$custom-light: #cd7acd;
$custom-dark: #000000;
JSON
{
  "hex": "#b338b7",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 298.11,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5688,
    "c": 0.21283,
    "h": 326.6
  },
  "luminance": 0.15831
}

Semantic roles & 50–950 ramp

primary
#B338B7
secondary
#86C784
accent
#DD4B50
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338B7

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

Preview Lab → · Contrast checker → · Palette generator →

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