#B338BF#B338BF

#B338BF is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.219 H 324.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B338BF
RGBrgb(179, 56, 191)
HSLhsl(295, 55%, 48%)
HSVhsv(295, 71%, 75%)
CMYKcmyk(6.3%, 70.7%, 0%, 25.1%)
CIE-LABlab(47.20, 65.75, -46.20)
CIE-LCHlch(47.20, 80.36, 324.90°)
OKLaboklab(57.35% 0.1776 -0.1287)
OKLCHoklch(57.35% 0.219 324.1)
XYZxyz(29.4077, 16.1754, 50.8533)
Luminance0.1617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338BF #44BF38
analogous
#6F38BF #B338BF #BF3887
triadic
#B338BF #BFB338 #38BFB3
tetradic
#B338BF #BF6F38 #44BF38 #3887BF
square
#B338BF #BF6F38 #44BF38 #3887BF
split-complementary
#B338BF #87BF38 #38BF6F
monochromatic
#5A1C60 #872A90 #B338BF #C763D1 #D892DF

Accessibility & contrast

On white

4.96
#B338BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B338BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338BF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338BF#FFFFFF#000000##FFFFFF
##B338BF1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C67C3
Deuteranopia (green-blind)
#5075BC
Tritanopia (blue-blind)
#B64F78
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b338bf;
/* rgb */ color: rgb(179, 56, 191);
/* oklch */ color: oklch(57.3% 0.219 324.1);
Tailwind
colors: {
  custom: {
    50: '#cd7ad3',
    500: '#b338bf',
    950: '#000000',
  },
}
SCSS
$custom: #b338bf;
$custom-light: #cd7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#b338bf",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 294.667,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57347,
    "c": 0.21932,
    "h": 324.1
  },
  "luminance": 0.16174
}

Semantic roles & 50–950 ramp

primary
#B338BF
secondary
#8ECA89
accent
#DE4A57
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338BF

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

Preview Lab → · Contrast checker → · Palette generator →

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