#B338AA#B338AA

#B338AA is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.203 H 331.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B338AA
RGBrgb(179, 56, 170)
HSLhsl(304, 52%, 46%)
HSVhsv(304, 69%, 70%)
CMYKcmyk(0%, 68.7%, 5%, 29.8%)
CIE-LABlab(46.06, 62.22, -35.68)
CIE-LCHlch(46.06, 71.72, 330.16°)
OKLaboklab(56.16% 0.1772 -0.0982)
OKLCHoklch(56.16% 0.203 331)
XYZxyz(27.2602, 15.3164, 39.5430)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338AA #38B341
analogous
#7E38B3 #B338AA #B3386C
triadic
#B338AA #AAB338 #38AAB3
tetradic
#B338AA #B37E38 #38B341 #386CB3
square
#B338AA #B37E38 #38B341 #386CB3
split-complementary
#B338AA #6CB338 #38B37E
monochromatic
#561B51 #84297E #B338AA #CC5CC4 #DB8BD5

Accessibility & contrast

On white

5.17
#B338AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B338AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338AA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338AA#FFFFFF#000000##FFFFFF
##B338AA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AD
Deuteranopia (green-blind)
#5C73A7
Tritanopia (blue-blind)
#BA466D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b338aa;
/* rgb */ color: rgb(179, 56, 170);
/* oklch */ color: oklch(56.2% 0.203 331.0);
Tailwind
colors: {
  custom: {
    50: '#cd79c3',
    500: '#b338aa',
    950: '#000000',
  },
}
SCSS
$custom: #b338aa;
$custom-light: #cd79c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b338aa",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 304.39,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5616,
    "c": 0.2026,
    "h": 331
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

primary
#B338AA
secondary
#82C587
accent
#DC574C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B338AA

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

Preview Lab → · Contrast checker → · Palette generator →

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