#B338C6#B338C6

#B338C6 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.225 H 322.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B338C6
RGBrgb(179, 56, 198)
HSLhsl(292, 56%, 50%)
HSVhsv(292, 72%, 78%)
CMYKcmyk(9.6%, 71.7%, 0%, 22.4%)
CIE-LABlab(47.61, 66.98, -49.61)
CIE-LCHlch(47.61, 83.36, 323.47°)
OKLaboklab(57.77% 0.1773 -0.1386)
OKLCHoklch(57.77% 0.225 322)
XYZxyz(30.1965, 16.4910, 55.0077)
Luminance0.1649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C6 #4BC638
analogous
#6C38C6 #B338C6 #C63892
triadic
#B338C6 #C6B338 #38C6B3
tetradic
#B338C6 #C66C38 #4BC638 #3892C6
square
#B338C6 #C66C38 #4BC638 #3892C6
split-complementary
#B338C6 #92C638 #38C66C
monochromatic
#5D1D67 #882B96 #B338C6 #C567D4 #D897E2

Accessibility & contrast

On white

4.89
#B338C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B338C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C6#FFFFFF#000000##FFFFFF
##B338C61.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#4B76C3
Tritanopia (blue-blind)
#B5527C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b338c6;
/* rgb */ color: rgb(179, 56, 198);
/* oklch */ color: oklch(57.8% 0.225 322.0);
Tailwind
colors: {
  custom: {
    50: '#ce7ad8',
    500: '#b338c6',
    950: '#000000',
  },
}
SCSS
$custom: #b338c6;
$custom-light: #ce7ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c6",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 291.972,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5777,
    "c": 0.22508,
    "h": 322
  },
  "luminance": 0.16489
}

Semantic roles & 50–950 ramp

primary
#B338C6
secondary
#95CD8D
accent
#DF495D
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338C6

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

Preview Lab → · Contrast checker → · Palette generator →

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