#B338C2#B338C2

#B338C2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.5% C 0.222 H 323.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B338C2
RGBrgb(179, 56, 194)
HSLhsl(293, 55%, 49%)
HSVhsv(293, 71%, 76%)
CMYKcmyk(7.7%, 71.1%, 0%, 23.9%)
CIE-LABlab(47.38, 66.27, -47.67)
CIE-LCHlch(47.38, 81.64, 324.27°)
OKLaboklab(57.53% 0.1775 -0.133)
OKLCHoklch(57.53% 0.222 323.2)
XYZxyz(29.7413, 16.3088, 52.6099)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C2 #47C238
analogous
#6E38C2 #B338C2 #C2388C
triadic
#B338C2 #C2B338 #38C2B3
tetradic
#B338C2 #C26E38 #47C238 #388CC2
square
#B338C2 #C26E38 #47C238 #388CC2
split-complementary
#B338C2 #8CC238 #38C26E
monochromatic
#5B1D63 #872A93 #B338C2 #C765D2 #D894E0

Accessibility & contrast

On white

4.93
#B338C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B338C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C2#FFFFFF#000000##FFFFFF
##B338C21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#4E75BF
Tritanopia (blue-blind)
#B6507A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b338c2;
/* rgb */ color: rgb(179, 56, 194);
/* oklch */ color: oklch(57.5% 0.222 323.2);
Tailwind
colors: {
  custom: {
    50: '#ce7ad5',
    500: '#b338c2',
    950: '#000000',
  },
}
SCSS
$custom: #b338c2;
$custom-light: #ce7ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c2",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 293.478,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57526,
    "c": 0.22178,
    "h": 323.2
  },
  "luminance": 0.16307
}

Semantic roles & 50–950 ramp

primary
#B338C2
secondary
#91CB8A
accent
#DF4959
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338C2

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

Preview Lab → · Contrast checker → · Palette generator →

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