#B338C3#B338C3

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

Color values

HEX#B338C3
RGBrgb(179, 56, 195)
HSLhsl(293, 55%, 49%)
HSVhsv(293, 71%, 76%)
CMYKcmyk(8.2%, 71.3%, 0%, 23.5%)
CIE-LABlab(47.44, 66.45, -48.16)
CIE-LCHlch(47.44, 82.06, 324.07°)
OKLaboklab(57.59% 0.1775 -0.1344)
OKLCHoklch(57.59% 0.223 322.9)
XYZxyz(29.8539, 16.3539, 53.2033)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338C3 #48C338
analogous
#6E38C3 #B338C3 #C3388D
triadic
#B338C3 #C3B338 #38C3B3
tetradic
#B338C3 #C36E38 #48C338 #388DC3
square
#B338C3 #C36E38 #48C338 #388DC3
split-complementary
#B338C3 #8DC338 #38C36E
monochromatic
#5C1D64 #872A93 #B338C3 #C665D3 #D895E1

Accessibility & contrast

On white

4.92
#B338C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B338C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338C3
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338C3#FFFFFF#000000##FFFFFF
##B338C31.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C7
Deuteranopia (green-blind)
#4E75C0
Tritanopia (blue-blind)
#B6517A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b338c3;
/* rgb */ color: rgb(179, 56, 195);
/* oklch */ color: oklch(57.6% 0.223 322.9);
Tailwind
colors: {
  custom: {
    50: '#ce7ad6',
    500: '#b338c3',
    950: '#000000',
  },
}
SCSS
$custom: #b338c3;
$custom-light: #ce7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#b338c3",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 293.094,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57587,
    "c": 0.2226,
    "h": 322.9
  },
  "luminance": 0.16352
}

Semantic roles & 50–950 ramp

primary
#B338C3
secondary
#92CC8B
accent
#DF495A
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B338C3

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

Preview Lab → · Contrast checker → · Palette generator →

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