#B338C0#B338C0

#B338C0 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.220 H 323.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B338C0
RGBrgb(179, 56, 192)
HSLhsl(294, 55%, 49%)
HSVhsv(294, 71%, 75%)
CMYKcmyk(6.8%, 70.8%, 0%, 24.7%)
CIE-LABlab(47.26, 65.92, -46.69)
CIE-LCHlch(47.26, 80.78, 324.69°)
OKLaboklab(57.41% 0.1776 -0.1301)
OKLCHoklch(57.41% 0.22 323.8)
XYZxyz(29.5182, 16.2196, 51.4349)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C0 #45C038
analogous
#6F38C0 #B338C0 #C03889
triadic
#B338C0 #C0B338 #38C0B3
tetradic
#B338C0 #C06F38 #45C038 #3889C0
square
#B338C0 #C06F38 #45C038 #3889C0
split-complementary
#B338C0 #89C038 #38C06F
monochromatic
#5B1C61 #872A91 #B338C0 #C764D2 #D893DF

Accessibility & contrast

On white

4.95
#B338C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#B338C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C0
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C0#FFFFFF#000000##FFFFFF
##B338C01.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0867C4
Deuteranopia (green-blind)
#5075BD
Tritanopia (blue-blind)
#B65079
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b338c0;
/* rgb */ color: rgb(179, 56, 192);
/* oklch */ color: oklch(57.4% 0.220 323.8);
Tailwind
colors: {
  custom: {
    50: '#cd7ad3',
    500: '#b338c0',
    950: '#000000',
  },
}
SCSS
$custom: #b338c0;
$custom-light: #cd7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c0",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 294.265,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57406,
    "c": 0.22013,
    "h": 323.8
  },
  "luminance": 0.16218
}

Semantic roles & 50–950 ramp

primary
#B338C0
secondary
#8FCB89
accent
#DE4A58
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338C0

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

Preview Lab → · Contrast checker → · Palette generator →

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