#B338A3#B338A3

#B338A3 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.197 H 333.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B338A3
RGBrgb(179, 56, 163)
HSLhsl(308, 52%, 46%)
HSVhsv(308, 69%, 70%)
CMYKcmyk(0%, 68.7%, 8.9%, 29.8%)
CIE-LABlab(45.71, 61.11, -32.08)
CIE-LCHlch(45.71, 69.02, 332.30°)
OKLaboklab(55.79% 0.1767 -0.0878)
OKLCHoklch(55.79% 0.197 333.6)
XYZxyz(26.6156, 15.0586, 36.1480)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338A3 #38B348
analogous
#8538B3 #B338A3 #B33865
triadic
#B338A3 #A3B338 #38A3B3
tetradic
#B338A3 #B38538 #38B348 #3865B3
square
#B338A3 #B38538 #38B348 #3865B3
split-complementary
#B338A3 #65B338 #38B385
monochromatic
#561B4E #842979 #B338A3 #CC5CBD #DB8BD0

Accessibility & contrast

On white

5.24
#B338A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B338A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338A3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338A3#FFFFFF#000000##FFFFFF
##B338A31.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A6
Deuteranopia (green-blind)
#6073A0
Tritanopia (blue-blind)
#BB4369
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b338a3;
/* rgb */ color: rgb(179, 56, 163);
/* oklch */ color: oklch(55.8% 0.197 333.6);
Tailwind
colors: {
  custom: {
    50: '#cd79be',
    500: '#b338a3',
    950: '#000000',
  },
}
SCSS
$custom: #b338a3;
$custom-light: #cd79be;
$custom-dark: #000000;
JSON
{
  "hex": "#b338a3",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 163
  },
  "hsl": {
    "h": 307.805,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55793,
    "c": 0.19729,
    "h": 333.6
  },
  "luminance": 0.15056
}

Semantic roles & 50–950 ramp

primary
#B338A3
secondary
#82C58B
accent
#DC5F4C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B338A3

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

Preview Lab → · Contrast checker → · Palette generator →

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