#B338D9#B338D9

#B338D9 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 59.0% C 0.241 H 316.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#B338D9
RGBrgb(179, 56, 217)
HSLhsl(286, 68%, 54%)
HSVhsv(286, 74%, 85%)
CMYKcmyk(17.5%, 74.2%, 0%, 14.9%)
CIE-LABlab(48.79, 70.47, -58.65)
CIE-LCHlch(48.79, 91.68, 320.23°)
OKLaboklab(58.98% 0.1756 -0.1651)
OKLCHoklch(58.98% 0.241 316.8)
XYZxyz(32.5271, 17.4232, 67.2818)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338D9 #5ED938
analogous
#6338D9 #B338D9 #D938AE
triadic
#B338D9 #D9B338 #38D9B3
tetradic
#B338D9 #D96338 #5ED938 #38AED9
square
#B338D9 #D96338 #5ED938 #38AED9
split-complementary
#B338D9 #AED938 #38D963
monochromatic
#66187E #9022B2 #B338D9 #C76BE3 #DA9FED

Accessibility & contrast

On white

4.68
#B338D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#B338D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338D9
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338D9#FFFFFF#000000##FFFFFF
##B338D91.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#3977D5
Tritanopia (blue-blind)
#B15B87
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b338d9;
/* rgb */ color: rgb(179, 56, 217);
/* oklch */ color: oklch(59.0% 0.241 316.8);
Tailwind
colors: {
  custom: {
    50: '#ce7be5',
    500: '#b338d9',
    950: '#000000',
  },
}
SCSS
$custom: #b338d9;
$custom-light: #ce7be5;
$custom-dark: #000000;
JSON
{
  "hex": "#b338d9",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 285.839,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58982,
    "c": 0.24103,
    "h": 316.8
  },
  "luminance": 0.17422
}

Semantic roles & 50–950 ramp

primary
#B338D9
secondary
#A4D994
accent
#EB3D66
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B338D9

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

Preview Lab → · Contrast checker → · Palette generator →

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