#B338A2#B338A2

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

Color values

HEX#B338A2
RGBrgb(179, 56, 162)
HSLhsl(308, 52%, 46%)
HSVhsv(308, 69%, 70%)
CMYKcmyk(0%, 68.7%, 9.5%, 29.8%)
CIE-LABlab(45.67, 60.95, -31.56)
CIE-LCHlch(45.67, 68.64, 332.62°)
OKLaboklab(55.74% 0.1766 -0.0863)
OKLCHoklch(55.74% 0.197 333.9)
XYZxyz(26.5264, 15.0229, 35.6780)
Luminance0.1502 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338A2 #38B349
analogous
#8638B3 #B338A2 #B33864
triadic
#B338A2 #A2B338 #38A2B3
tetradic
#B338A2 #B38638 #38B349 #3864B3
square
#B338A2 #B38638 #38B349 #3864B3
split-complementary
#B338A2 #64B338 #38B386
monochromatic
#561B4E #842978 #B338A2 #CC5CBD #DB8BD0

Accessibility & contrast

On white

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

On black

4.00
#B338A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B338A2#FFFFFF#000000##FFFFFF
##B338A21.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#60739F
Tritanopia (blue-blind)
#BB4268
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b338a2;
/* rgb */ color: rgb(179, 56, 162);
/* oklch */ color: oklch(55.7% 0.197 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd79be',
    500: '#b338a2',
    950: '#000000',
  },
}
SCSS
$custom: #b338a2;
$custom-light: #cd79be;
$custom-dark: #000000;
JSON
{
  "hex": "#b338a2",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 308.293,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55742,
    "c": 0.19656,
    "h": 333.9
  },
  "luminance": 0.15021
}

Semantic roles & 50–950 ramp

primary
#B338A2
secondary
#82C58B
accent
#DC604C
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B338A2

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

Preview Lab → · Contrast checker → · Palette generator →

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