#B338B9#B338B9

#B338B9 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.0% C 0.214 H 326.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B338B9
RGBrgb(179, 56, 185)
HSLhsl(297, 54%, 47%)
HSVhsv(297, 70%, 73%)
CMYKcmyk(3.2%, 69.7%, 0%, 27.5%)
CIE-LABlab(46.87, 64.71, -43.24)
CIE-LCHlch(46.87, 77.83, 326.25°)
OKLaboklab(57% 0.1777 -0.1201)
OKLCHoklch(57% 0.214 326)
XYZxyz(28.7610, 15.9167, 47.4469)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338B9 #3EB938
analogous
#7238B9 #B338B9 #B9387F
triadic
#B338B9 #B9B338 #38B9B3
tetradic
#B338B9 #B97238 #3EB938 #387FB9
square
#B338B9 #B97238 #3EB938 #387FB9
split-complementary
#B338B9 #7FB938 #38B972
monochromatic
#581C5B #862A8A #B338B9 #CA5FCF #D98EDD

Accessibility & contrast

On white

5.02
#B338B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#B338B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338B9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338B9#FFFFFF#000000##FFFFFF
##B338B91.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B65BD
Deuteranopia (green-blind)
#5474B6
Tritanopia (blue-blind)
#B74C75
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b338b9;
/* rgb */ color: rgb(179, 56, 185);
/* oklch */ color: oklch(57.0% 0.214 326.0);
Tailwind
colors: {
  custom: {
    50: '#cd7ace',
    500: '#b338b9',
    950: '#000000',
  },
}
SCSS
$custom: #b338b9;
$custom-light: #cd7ace;
$custom-dark: #000000;
JSON
{
  "hex": "#b338b9",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 297.209,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56995,
    "c": 0.21445,
    "h": 326
  },
  "luminance": 0.15915
}

Semantic roles & 50–950 ramp

primary
#B338B9
secondary
#88C885
accent
#DD4B52
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B338B9

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

Preview Lab → · Contrast checker → · Palette generator →

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