#B338B0#B338B0

#B338B0 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.207 H 328.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B338B0
RGBrgb(179, 56, 176)
HSLhsl(301, 52%, 46%)
HSVhsv(301, 69%, 70%)
CMYKcmyk(0%, 68.7%, 1.7%, 29.8%)
CIE-LABlab(46.38, 63.20, -38.73)
CIE-LCHlch(46.38, 74.12, 328.50°)
OKLaboklab(56.49% 0.1775 -0.107)
OKLCHoklch(56.49% 0.207 328.9)
XYZxyz(27.8408, 15.5487, 42.6007)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338B0 #38B33B
analogous
#7838B3 #B338B0 #B33872
triadic
#B338B0 #B0B338 #38B0B3
tetradic
#B338B0 #B37838 #38B33B #3872B3
square
#B338B0 #B37838 #38B33B #3872B3
split-complementary
#B338B0 #72B338 #38B378
monochromatic
#561B54 #842982 #B338B0 #CC5CC9 #DB8BD9

Accessibility & contrast

On white

5.11
#B338B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#B338B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338B0
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338B0#FFFFFF#000000##FFFFFF
##B338B01.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B3
Deuteranopia (green-blind)
#5974AD
Tritanopia (blue-blind)
#B94870
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b338b0;
/* rgb */ color: rgb(179, 56, 176);
/* oklch */ color: oklch(56.5% 0.207 328.9);
Tailwind
colors: {
  custom: {
    50: '#cd79c8',
    500: '#b338b0',
    950: '#000000',
  },
}
SCSS
$custom: #b338b0;
$custom-light: #cd79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b338b0",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 301.463,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56486,
    "c": 0.20727,
    "h": 328.9
  },
  "luminance": 0.15547
}

Semantic roles & 50–950 ramp

primary
#B338B0
secondary
#82C583
accent
#DC504C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338B0

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

Preview Lab → · Contrast checker → · Palette generator →

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