#B338A4#B338A4

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

Color values

HEX#B338A4
RGBrgb(179, 56, 164)
HSLhsl(307, 52%, 46%)
HSVhsv(307, 69%, 70%)
CMYKcmyk(0%, 68.7%, 8.4%, 29.8%)
CIE-LABlab(45.76, 61.26, -32.60)
CIE-LCHlch(45.76, 69.40, 331.98°)
OKLaboklab(55.85% 0.1768 -0.0893)
OKLCHoklch(55.85% 0.198 333.2)
XYZxyz(26.7055, 15.0946, 36.6218)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338A4 #38B347
analogous
#8438B3 #B338A4 #B33866
triadic
#B338A4 #A4B338 #38A4B3
tetradic
#B338A4 #B38438 #38B347 #3866B3
square
#B338A4 #B38438 #38B347 #3866B3
split-complementary
#B338A4 #66B338 #38B384
monochromatic
#561B4F #842979 #B338A4 #CC5CBE #DB8BD1

Accessibility & contrast

On white

5.23
#B338A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B338A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338A4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338A4#FFFFFF#000000##FFFFFF
##B338A41.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A7
Deuteranopia (green-blind)
#5F73A1
Tritanopia (blue-blind)
#BB4369
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b338a4;
/* rgb */ color: rgb(179, 56, 164);
/* oklch */ color: oklch(55.8% 0.198 333.2);
Tailwind
colors: {
  custom: {
    50: '#cd79bf',
    500: '#b338a4',
    950: '#000000',
  },
}
SCSS
$custom: #b338a4;
$custom-light: #cd79bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b338a4",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 164
  },
  "hsl": {
    "h": 307.317,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55845,
    "c": 0.19805,
    "h": 333.2
  },
  "luminance": 0.15092
}

Semantic roles & 50–950 ramp

primary
#B338A4
secondary
#82C58A
accent
#DC5E4C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B338A4

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

Preview Lab → · Contrast checker → · Palette generator →

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