#B338CC#B338CC

#B338CC is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.1% C 0.230 H 320.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B338CC
RGBrgb(179, 56, 204)
HSLhsl(290, 59%, 51%)
HSVhsv(290, 73%, 80%)
CMYKcmyk(12.3%, 72.5%, 0%, 20%)
CIE-LABlab(47.97, 68.07, -52.50)
CIE-LCHlch(47.97, 85.96, 322.36°)
OKLaboklab(58.14% 0.1769 -0.1471)
OKLCHoklch(58.14% 0.23 320.3)
XYZxyz(30.9023, 16.7733, 58.7249)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338CC #51CC38
analogous
#6938CC #B338CC #CC389B
triadic
#B338CC #CCB338 #38CCB3
tetradic
#B338CC #CC6938 #51CC38 #389BCC
square
#B338CC #CC6938 #51CC38 #389BCC
split-complementary
#B338CC #9BCC38 #38CC69
monochromatic
#601C6E #8A299E #B338CC #C669D8 #D899E5

Accessibility & contrast

On white

4.82
#B338CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B338CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338CC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338CC#FFFFFF#000000##FFFFFF
##B338CC1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#4676C9
Tritanopia (blue-blind)
#B4557F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b338cc;
/* rgb */ color: rgb(179, 56, 204);
/* oklch */ color: oklch(58.1% 0.230 320.3);
Tailwind
colors: {
  custom: {
    50: '#ce7adc',
    500: '#b338cc',
    950: '#000000',
  },
}
SCSS
$custom: #b338cc;
$custom-light: #ce7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#b338cc",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 289.865,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58143,
    "c": 0.23008,
    "h": 320.3
  },
  "luminance": 0.16772
}

Semantic roles & 50–950 ramp

primary
#B338CC
secondary
#9AD18F
accent
#E24560
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B338CC

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

Preview Lab → · Contrast checker → · Palette generator →

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