#B338C7#B338C7

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

Color values

HEX#B338C7
RGBrgb(179, 56, 199)
HSLhsl(292, 56%, 50%)
HSVhsv(292, 72%, 78%)
CMYKcmyk(10.1%, 71.9%, 0%, 22%)
CIE-LABlab(47.67, 67.16, -50.10)
CIE-LCHlch(47.67, 83.79, 323.28°)
OKLaboklab(57.83% 0.1773 -0.1401)
OKLCHoklch(57.83% 0.226 321.7)
XYZxyz(30.3123, 16.5372, 55.6171)
Luminance0.1654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C7 #4CC738
analogous
#6B38C7 #B338C7 #C73894
triadic
#B338C7 #C7B338 #38C7B3
tetradic
#B338C7 #C76B38 #4CC738 #3894C7
square
#B338C7 #C76B38 #4CC738 #3894C7
split-complementary
#B338C7 #94C738 #38C76B
monochromatic
#5D1D67 #882B97 #B338C7 #C568D4 #D798E2

Accessibility & contrast

On white

4.88
#B338C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B338C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C7#FFFFFF#000000##FFFFFF
##B338C71.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#4B76C4
Tritanopia (blue-blind)
#B5537C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b338c7;
/* rgb */ color: rgb(179, 56, 199);
/* oklch */ color: oklch(57.8% 0.226 321.7);
Tailwind
colors: {
  custom: {
    50: '#ce7ad9',
    500: '#b338c7',
    950: '#000000',
  },
}
SCSS
$custom: #b338c7;
$custom-light: #ce7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c7",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 291.608,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.57831,
    "c": 0.22591,
    "h": 321.7
  },
  "luminance": 0.16536
}

Semantic roles & 50–950 ramp

primary
#B338C7
secondary
#96CD8D
accent
#DF485E
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A15
muted
#837C83

Preview Lab

Preview with #B338C7

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

Preview Lab → · Contrast checker → · Palette generator →

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