#B338AB#B338AB

#B338AB is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.2% C 0.203 H 330.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B338AB
RGBrgb(179, 56, 171)
HSLhsl(304, 52%, 46%)
HSVhsv(304, 69%, 70%)
CMYKcmyk(0%, 68.7%, 4.5%, 29.8%)
CIE-LABlab(46.12, 62.38, -36.19)
CIE-LCHlch(46.12, 72.12, 329.88°)
OKLaboklab(56.21% 0.1773 -0.0996)
OKLCHoklch(56.21% 0.203 330.7)
XYZxyz(27.3552, 15.3544, 40.0431)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338AB #38B340
analogous
#7D38B3 #B338AB #B3386D
triadic
#B338AB #ABB338 #38ABB3
tetradic
#B338AB #B37D38 #38B340 #386DB3
square
#B338AB #B37D38 #38B340 #386DB3
split-complementary
#B338AB #6DB338 #38B37D
monochromatic
#561B52 #84297E #B338AB #CC5CC5 #DB8BD5

Accessibility & contrast

On white

5.16
#B338AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B338AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338AB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338AB#FFFFFF#000000##FFFFFF
##B338AB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E62AE
Deuteranopia (green-blind)
#5C73A8
Tritanopia (blue-blind)
#BA466D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b338ab;
/* rgb */ color: rgb(179, 56, 171);
/* oklch */ color: oklch(56.2% 0.203 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd79c4',
    500: '#b338ab',
    950: '#000000',
  },
}
SCSS
$custom: #b338ab;
$custom-light: #cd79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b338ab",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 303.902,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56214,
    "c": 0.20338,
    "h": 330.7
  },
  "luminance": 0.15352
}

Semantic roles & 50–950 ramp

primary
#B338AB
secondary
#82C586
accent
#DC554C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338AB

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

Preview Lab → · Contrast checker → · Palette generator →

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