#B338C5#B338C5

#B338C5 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.224 H 322.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B338C5
RGBrgb(179, 56, 197)
HSLhsl(292, 56%, 50%)
HSVhsv(292, 72%, 77%)
CMYKcmyk(9.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(47.55, 66.81, -49.13)
CIE-LCHlch(47.55, 82.92, 323.67°)
OKLaboklab(57.71% 0.1774 -0.1372)
OKLCHoklch(57.71% 0.224 322.3)
XYZxyz(30.0816, 16.4450, 54.4022)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C5 #4AC538
analogous
#6C38C5 #B338C5 #C53891
triadic
#B338C5 #C5B338 #38C5B3
tetradic
#B338C5 #C56C38 #4AC538 #3891C5
square
#B338C5 #C56C38 #4AC538 #3891C5
split-complementary
#B338C5 #91C538 #38C56C
monochromatic
#5C1D66 #882A95 #B338C5 #C667D4 #D896E1

Accessibility & contrast

On white

4.90
#B338C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B338C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C5#FFFFFF#000000##FFFFFF
##B338C51.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#4C75C2
Tritanopia (blue-blind)
#B5527B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b338c5;
/* rgb */ color: rgb(179, 56, 197);
/* oklch */ color: oklch(57.7% 0.224 322.3);
Tailwind
colors: {
  custom: {
    50: '#ce7ad7',
    500: '#b338c5',
    950: '#000000',
  },
}
SCSS
$custom: #b338c5;
$custom-light: #ce7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c5",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 292.34,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57709,
    "c": 0.22426,
    "h": 322.3
  },
  "luminance": 0.16443
}

Semantic roles & 50–950 ramp

primary
#B338C5
secondary
#94CD8C
accent
#DF495C
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338C5

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

Preview Lab → · Contrast checker → · Palette generator →

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