#B338A0#B338A0

#B338A0 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.6% C 0.195 H 334.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B338A0
RGBrgb(179, 56, 160)
HSLhsl(309, 52%, 46%)
HSVhsv(309, 69%, 70%)
CMYKcmyk(0%, 68.7%, 10.6%, 29.8%)
CIE-LABlab(45.57, 60.64, -30.52)
CIE-LCHlch(45.57, 67.89, 333.28°)
OKLaboklab(55.64% 0.1764 -0.0833)
OKLCHoklch(55.64% 0.195 334.7)
XYZxyz(26.3500, 14.9523, 34.7492)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338A0 #38B34B
analogous
#8838B3 #B338A0 #B33862
triadic
#B338A0 #A0B338 #38A0B3
tetradic
#B338A0 #B38838 #38B34B #3862B3
square
#B338A0 #B38838 #38B34B #3862B3
split-complementary
#B338A0 #62B338 #38B388
monochromatic
#561B4D #842976 #B338A0 #CC5CBB #DB8BCE

Accessibility & contrast

On white

5.26
#B338A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B338A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338A0
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338A0#FFFFFF#000000##FFFFFF
##B338A01.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3760A3
Deuteranopia (green-blind)
#61729D
Tritanopia (blue-blind)
#BC4167
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b338a0;
/* rgb */ color: rgb(179, 56, 160);
/* oklch */ color: oklch(55.6% 0.195 334.7);
Tailwind
colors: {
  custom: {
    50: '#cd79bc',
    500: '#b338a0',
    950: '#000000',
  },
}
SCSS
$custom: #b338a0;
$custom-light: #cd79bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b338a0",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 160
  },
  "hsl": {
    "h": 309.268,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5564,
    "c": 0.19507,
    "h": 334.7
  },
  "luminance": 0.1495
}

Semantic roles & 50–950 ramp

primary
#B338A0
secondary
#82C58C
accent
#DC624C
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B338A0

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

Preview Lab → · Contrast checker → · Palette generator →

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