#B338DA#B338DA

#B338DA is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 59.0% C 0.242 H 316.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B338DA
RGBrgb(179, 56, 218)
HSLhsl(286, 69%, 54%)
HSVhsv(286, 74%, 85%)
CMYKcmyk(17.9%, 74.3%, 0%, 14.5%)
CIE-LABlab(48.85, 70.66, -59.11)
CIE-LCHlch(48.85, 92.13, 320.09°)
OKLaboklab(59.05% 0.1755 -0.1665)
OKLCHoklch(59.05% 0.242 316.5)
XYZxyz(32.6575, 17.4754, 67.9689)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338DA #5FDA38
analogous
#6238DA #B338DA #DA38B0
triadic
#B338DA #DAB338 #38DAB3
tetradic
#B338DA #DA6238 #5FDA38 #38B0DA
square
#B338DA #DA6238 #5FDA38 #38B0DA
split-complementary
#B338DA #B0DA38 #38DA62
monochromatic
#671880 #9021B3 #B338DA #C76CE4 #DA9FED

Accessibility & contrast

On white

4.67
#B338DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#B338DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338DA
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338DA#FFFFFF#000000##FFFFFF
##B338DA1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#3877D6
Tritanopia (blue-blind)
#B15B87
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b338da;
/* rgb */ color: rgb(179, 56, 218);
/* oklch */ color: oklch(59.0% 0.242 316.5);
Tailwind
colors: {
  custom: {
    50: '#ce7be6',
    500: '#b338da',
    950: '#000000',
  },
}
SCSS
$custom: #b338da;
$custom-light: #ce7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b338da",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 285.556,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59049,
    "c": 0.24189,
    "h": 316.5
  },
  "luminance": 0.17474
}

Semantic roles & 50–950 ramp

primary
#B338DA
secondary
#A5DA94
accent
#EB3C66
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B338DA

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

Preview Lab → · Contrast checker → · Palette generator →

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