#B338B8#B338B8

#B338B8 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.214 H 326.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B338B8
RGBrgb(179, 56, 184)
HSLhsl(298, 53%, 47%)
HSVhsv(298, 70%, 72%)
CMYKcmyk(2.7%, 69.6%, 0%, 27.8%)
CIE-LABlab(46.81, 64.54, -42.74)
CIE-LCHlch(46.81, 77.41, 326.48°)
OKLaboklab(56.94% 0.1777 -0.1186)
OKLCHoklch(56.94% 0.214 326.3)
XYZxyz(28.6558, 15.8746, 46.8929)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338B8 #3DB838
analogous
#7338B8 #B338B8 #B8387D
triadic
#B338B8 #B8B338 #38B8B3
tetradic
#B338B8 #B87338 #3DB838 #387DB8
square
#B338B8 #B87338 #3DB838 #387DB8
split-complementary
#B338B8 #7DB838 #38B873
monochromatic
#581B5A #852A89 #B338B8 #CA5FCE #D98EDD

Accessibility & contrast

On white

5.03
#B338B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B338B8
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338B8#FFFFFF#000000##FFFFFF
##B338B81.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b338b8;
/* rgb */ color: rgb(179, 56, 184);
/* oklch */ color: oklch(56.9% 0.214 326.3);
Tailwind
colors: {
  custom: {
    50: '#cd7ace',
    500: '#b338b8',
    950: '#000000',
  },
}
SCSS
$custom: #b338b8;
$custom-light: #cd7ace;
$custom-dark: #000000;
JSON
{
  "hex": "#b338b8",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 297.656,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56937,
    "c": 0.21364,
    "h": 326.3
  },
  "luminance": 0.15873
}

Semantic roles & 50–950 ramp

primary
#B338B8
secondary
#87C785
accent
#DD4B51
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338B8

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

Preview Lab → · Contrast checker → · Palette generator →

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