#B338BC#B338BC

#B338BC is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.217 H 325.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B338BC
RGBrgb(179, 56, 188)
HSLhsl(296, 54%, 48%)
HSVhsv(296, 70%, 74%)
CMYKcmyk(4.8%, 70.2%, 0%, 26.3%)
CIE-LABlab(47.03, 65.23, -44.72)
CIE-LCHlch(47.03, 79.09, 325.56°)
OKLaboklab(57.17% 0.1777 -0.1244)
OKLCHoklch(57.17% 0.217 325)
XYZxyz(29.0810, 16.0447, 49.1324)
Luminance0.1604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338BC #41BC38
analogous
#7138BC #B338BC #BC3883
triadic
#B338BC #BCB338 #38BCB3
tetradic
#B338BC #BC7138 #41BC38 #3883BC
square
#B338BC #BC7138 #41BC38 #3883BC
split-complementary
#B338BC #83BC38 #38BC71
monochromatic
#591C5E #862A8D #B338BC #C861D0 #D990DE

Accessibility & contrast

On white

4.99
#B338BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B338BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338BC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338BC#FFFFFF#000000##FFFFFF
##B338BC1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1566C0
Deuteranopia (green-blind)
#5275B9
Tritanopia (blue-blind)
#B74E76
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b338bc;
/* rgb */ color: rgb(179, 56, 188);
/* oklch */ color: oklch(57.2% 0.217 325.0);
Tailwind
colors: {
  custom: {
    50: '#cd7ad1',
    500: '#b338bc',
    950: '#000000',
  },
}
SCSS
$custom: #b338bc;
$custom-light: #cd7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#b338bc",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 295.909,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5717,
    "c": 0.21687,
    "h": 325
  },
  "luminance": 0.16043
}

Semantic roles & 50–950 ramp

primary
#B338BC
secondary
#8BC987
accent
#DD4A54
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B338BC

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

Preview Lab → · Contrast checker → · Palette generator →

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