#B338A5#B338A5

#B338A5 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.9% C 0.199 H 332.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B338A5
RGBrgb(179, 56, 165)
HSLhsl(307, 52%, 46%)
HSVhsv(307, 69%, 70%)
CMYKcmyk(0%, 68.7%, 7.8%, 29.8%)
CIE-LABlab(45.81, 61.42, -33.12)
CIE-LCHlch(45.81, 69.78, 331.67°)
OKLaboklab(55.9% 0.1769 -0.0908)
OKLCHoklch(55.9% 0.199 332.8)
XYZxyz(26.7962, 15.1308, 37.0992)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338A5 #38B346
analogous
#8338B3 #B338A5 #B33867
triadic
#B338A5 #A5B338 #38A5B3
tetradic
#B338A5 #B38338 #38B346 #3867B3
square
#B338A5 #B38338 #38B346 #3867B3
split-complementary
#B338A5 #67B338 #38B383
monochromatic
#561B4F #84297A #B338A5 #CC5CBF #DB8BD2

Accessibility & contrast

On white

5.22
#B338A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B338A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338A5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338A5#FFFFFF#000000##FFFFFF
##B338A51.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A8
Deuteranopia (green-blind)
#5F73A2
Tritanopia (blue-blind)
#BB446A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b338a5;
/* rgb */ color: rgb(179, 56, 165);
/* oklch */ color: oklch(55.9% 0.199 332.8);
Tailwind
colors: {
  custom: {
    50: '#cd79c0',
    500: '#b338a5',
    950: '#000000',
  },
}
SCSS
$custom: #b338a5;
$custom-light: #cd79c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b338a5",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 165
  },
  "hsl": {
    "h": 306.829,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55896,
    "c": 0.1988,
    "h": 332.8
  },
  "luminance": 0.15129
}

Semantic roles & 50–950 ramp

primary
#B338A5
secondary
#82C589
accent
#DC5C4C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B338A5

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

Preview Lab → · Contrast checker → · Palette generator →

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