#B338CB#B338CB

#B338CB is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.229 H 320.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B338CB
RGBrgb(179, 56, 203)
HSLhsl(290, 59%, 51%)
HSVhsv(290, 72%, 80%)
CMYKcmyk(11.8%, 72.4%, 0%, 20.4%)
CIE-LABlab(47.91, 67.88, -52.02)
CIE-LCHlch(47.91, 85.52, 322.54°)
OKLaboklab(58.08% 0.177 -0.1457)
OKLCHoklch(58.08% 0.229 320.5)
XYZxyz(30.7828, 16.7255, 58.0952)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338CB #50CB38
analogous
#6938CB #B338CB #CB3899
triadic
#B338CB #CBB338 #38CBB3
tetradic
#B338CB #CB6938 #50CB38 #3899CB
square
#B338CB #CB6938 #50CB38 #3899CB
split-complementary
#B338CB #99CB38 #38CB69
monochromatic
#5F1C6C #8A299D #B338CB #C669D8 #D899E4

Accessibility & contrast

On white

4.83
#B338CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B338CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338CB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338CB#FFFFFF#000000##FFFFFF
##B338CB1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#4776C8
Tritanopia (blue-blind)
#B4547F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b338cb;
/* rgb */ color: rgb(179, 56, 203);
/* oklch */ color: oklch(58.1% 0.229 320.5);
Tailwind
colors: {
  custom: {
    50: '#ce7adb',
    500: '#b338cb',
    950: '#000000',
  },
}
SCSS
$custom: #b338cb;
$custom-light: #ce7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#b338cb",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 290.204,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5808,
    "c": 0.22925,
    "h": 320.5
  },
  "luminance": 0.16724
}

Semantic roles & 50–950 ramp

primary
#B338CB
secondary
#99D08F
accent
#E2465F
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B338CB

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

Preview Lab → · Contrast checker → · Palette generator →

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