#B338AF#B338AF

#B338AF is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.206 H 329.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B338AF
RGBrgb(179, 56, 175)
HSLhsl(302, 52%, 46%)
HSVhsv(302, 69%, 70%)
CMYKcmyk(0%, 68.7%, 2.2%, 29.8%)
CIE-LABlab(46.32, 63.03, -38.23)
CIE-LCHlch(46.32, 73.72, 328.76°)
OKLaboklab(56.43% 0.1775 -0.1055)
OKLCHoklch(56.43% 0.206 329.3)
XYZxyz(27.7422, 15.5092, 42.0815)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338AF #38B33C
analogous
#7938B3 #B338AF #B33871
triadic
#B338AF #AFB338 #38AFB3
tetradic
#B338AF #B37938 #38B33C #3871B3
square
#B338AF #B37938 #38B33C #3871B3
split-complementary
#B338AF #71B338 #38B379
monochromatic
#561B54 #842981 #B338AF #CC5CC8 #DB8BD8

Accessibility & contrast

On white

5.12
#B338AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B338AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338AF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338AF#FFFFFF#000000##FFFFFF
##B338AF1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2963B2
Deuteranopia (green-blind)
#5A74AC
Tritanopia (blue-blind)
#B9486F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b338af;
/* rgb */ color: rgb(179, 56, 175);
/* oklch */ color: oklch(56.4% 0.206 329.3);
Tailwind
colors: {
  custom: {
    50: '#cd79c7',
    500: '#b338af',
    950: '#000000',
  },
}
SCSS
$custom: #b338af;
$custom-light: #cd79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b338af",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 301.951,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56431,
    "c": 0.20649,
    "h": 329.3
  },
  "luminance": 0.15507
}

Semantic roles & 50–950 ramp

primary
#B338AF
secondary
#82C584
accent
#DC514C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338AF

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

Preview Lab → · Contrast checker → · Palette generator →

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