#B338CD#B338CD

#B338CD is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.2% C 0.231 H 320.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B338CD
RGBrgb(179, 56, 205)
HSLhsl(290, 60%, 51%)
HSVhsv(290, 73%, 80%)
CMYKcmyk(12.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(48.03, 68.25, -52.98)
CIE-LCHlch(48.03, 86.40, 322.18°)
OKLaboklab(58.21% 0.1768 -0.1485)
OKLCHoklch(58.21% 0.231 320)
XYZxyz(31.0227, 16.8214, 59.3585)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338CD #52CD38
analogous
#6838CD #B338CD #CD389C
triadic
#B338CD #CDB338 #38CDB3
tetradic
#B338CD #CD6838 #52CD38 #389CCD
square
#B338CD #CD6838 #52CD38 #389CCD
split-complementary
#B338CD #9CCD38 #38CD68
monochromatic
#601C6F #8B28A0 #B338CD #C669D9 #D89AE6

Accessibility & contrast

On white

4.81
#B338CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B338CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338CD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338CD#FFFFFF#000000##FFFFFF
##B338CD1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#4676CA
Tritanopia (blue-blind)
#B45580
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b338cd;
/* rgb */ color: rgb(179, 56, 205);
/* oklch */ color: oklch(58.2% 0.231 320.0);
Tailwind
colors: {
  custom: {
    50: '#ce7add',
    500: '#b338cd',
    950: '#000000',
  },
}
SCSS
$custom: #b338cd;
$custom-light: #ce7add;
$custom-dark: #000000;
JSON
{
  "hex": "#b338cd",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 289.53,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58206,
    "c": 0.23091,
    "h": 320
  },
  "luminance": 0.1682
}

Semantic roles & 50–950 ramp

primary
#B338CD
secondary
#9BD18F
accent
#E34560
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B338CD

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

Preview Lab → · Contrast checker → · Palette generator →

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