#B338C1#B338C1

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

Color values

HEX#B338C1
RGBrgb(179, 56, 193)
HSLhsl(294, 55%, 49%)
HSVhsv(294, 71%, 76%)
CMYKcmyk(7.3%, 71%, 0%, 24.3%)
CIE-LABlab(47.32, 66.10, -47.18)
CIE-LCHlch(47.32, 81.21, 324.48°)
OKLaboklab(57.47% 0.1775 -0.1315)
OKLCHoklch(57.47% 0.221 323.5)
XYZxyz(29.6293, 16.2641, 52.0204)
Luminance0.1626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C1 #46C138
analogous
#6F38C1 #B338C1 #C1388B
triadic
#B338C1 #C1B338 #38C1B3
tetradic
#B338C1 #C16F38 #46C138 #388BC1
square
#B338C1 #C16F38 #46C138 #388BC1
split-complementary
#B338C1 #8BC138 #38C16F
monochromatic
#5B1C62 #872A92 #B338C1 #C764D2 #D894E0

Accessibility & contrast

On white

4.94
#B338C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#B338C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C1#FFFFFF#000000##FFFFFF
##B338C11.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0367C5
Deuteranopia (green-blind)
#4F75BE
Tritanopia (blue-blind)
#B65079
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b338c1;
/* rgb */ color: rgb(179, 56, 193);
/* oklch */ color: oklch(57.5% 0.221 323.5);
Tailwind
colors: {
  custom: {
    50: '#cd7ad4',
    500: '#b338c1',
    950: '#000000',
  },
}
SCSS
$custom: #b338c1;
$custom-light: #cd7ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c1",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 293.869,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57466,
    "c": 0.22096,
    "h": 323.5
  },
  "luminance": 0.16262
}

Semantic roles & 50–950 ramp

primary
#B338C1
secondary
#90CB8A
accent
#DE4959
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338C1

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

Preview Lab → · Contrast checker → · Palette generator →

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