#B338C4#B338C4

#B338C4 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.223 H 322.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B338C4
RGBrgb(179, 56, 196)
HSLhsl(293, 56%, 49%)
HSVhsv(293, 71%, 77%)
CMYKcmyk(8.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(47.49, 66.63, -48.64)
CIE-LCHlch(47.49, 82.49, 323.87°)
OKLaboklab(57.65% 0.1774 -0.1358)
OKLCHoklch(57.65% 0.223 322.6)
XYZxyz(29.9674, 16.3993, 53.8008)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C4 #49C438
analogous
#6D38C4 #B338C4 #C4388F
triadic
#B338C4 #C4B338 #38C4B3
tetradic
#B338C4 #C46D38 #49C438 #388FC4
square
#B338C4 #C46D38 #49C438 #388FC4
split-complementary
#B338C4 #8FC438 #38C46D
monochromatic
#5C1D65 #882A94 #B338C4 #C666D3 #D896E1

Accessibility & contrast

On white

4.91
#B338C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B338C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C4#FFFFFF#000000##FFFFFF
##B338C41.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#4D75C1
Tritanopia (blue-blind)
#B5517B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b338c4;
/* rgb */ color: rgb(179, 56, 196);
/* oklch */ color: oklch(57.6% 0.223 322.6);
Tailwind
colors: {
  custom: {
    50: '#ce7ad6',
    500: '#b338c4',
    950: '#000000',
  },
}
SCSS
$custom: #b338c4;
$custom-light: #ce7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c4",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 292.714,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57648,
    "c": 0.22343,
    "h": 322.6
  },
  "luminance": 0.16398
}

Semantic roles & 50–950 ramp

primary
#B338C4
secondary
#93CC8C
accent
#DF495B
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338C4

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

Preview Lab → · Contrast checker → · Palette generator →

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