#B338B5#B338B5

#B338B5 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.211 H 327.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B338B5
RGBrgb(179, 56, 181)
HSLhsl(299, 53%, 46%)
HSVhsv(299, 69%, 71%)
CMYKcmyk(1.1%, 69.1%, 0%, 29%)
CIE-LABlab(46.65, 64.03, -41.25)
CIE-LCHlch(46.65, 76.17, 327.21°)
OKLaboklab(56.77% 0.1777 -0.1143)
OKLCHoklch(56.77% 0.211 327.2)
XYZxyz(28.3446, 15.7502, 45.2543)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338B5 #3AB538
analogous
#7538B5 #B338B5 #B53879
triadic
#B338B5 #B5B338 #38B5B3
tetradic
#B338B5 #B57538 #3AB538 #3879B5
square
#B338B5 #B57538 #3AB538 #3879B5
split-complementary
#B338B5 #79B538 #38B575
monochromatic
#571B58 #852A86 #B338B5 #CB5DCD #DA8CDB

Accessibility & contrast

On white

5.06
#B338B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#B338B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338B5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338B5#FFFFFF#000000##FFFFFF
##B338B51.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2264B9
Deuteranopia (green-blind)
#5774B2
Tritanopia (blue-blind)
#B84B73
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b338b5;
/* rgb */ color: rgb(179, 56, 181);
/* oklch */ color: oklch(56.8% 0.211 327.2);
Tailwind
colors: {
  custom: {
    50: '#cd7acc',
    500: '#b338b5',
    950: '#000000',
  },
}
SCSS
$custom: #b338b5;
$custom-light: #cd7acc;
$custom-dark: #000000;
JSON
{
  "hex": "#b338b5",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 299.04,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56766,
    "c": 0.21123,
    "h": 327.2
  },
  "luminance": 0.15748
}

Semantic roles & 50–950 ramp

primary
#B338B5
secondary
#84C683
accent
#DC4C4E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338B5

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

Preview Lab → · Contrast checker → · Palette generator →

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