#B338B2#B338B2

#B338B2 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.209 H 328.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B338B2
RGBrgb(179, 56, 178)
HSLhsl(300, 52%, 46%)
HSVhsv(300, 69%, 70%)
CMYKcmyk(0%, 68.7%, 0.6%, 29.8%)
CIE-LABlab(46.48, 63.53, -39.74)
CIE-LCHlch(46.48, 74.93, 327.97°)
OKLaboklab(56.6% 0.1776 -0.1099)
OKLCHoklch(56.6% 0.209 328.2)
XYZxyz(28.0401, 15.6284, 43.6506)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338B2 #38B339
analogous
#7638B3 #B338B2 #B33874
triadic
#B338B2 #B2B338 #38B2B3
tetradic
#B338B2 #B37638 #38B339 #3874B3
square
#B338B2 #B37638 #38B339 #3874B3
split-complementary
#B338B2 #74B338 #38B376
monochromatic
#561B55 #842984 #B338B2 #CC5CCB #DB8BDA

Accessibility & contrast

On white

5.09
#B338B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B338B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338B2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338B2#FFFFFF#000000##FFFFFF
##B338B21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#B94971
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b338b2;
/* rgb */ color: rgb(179, 56, 178);
/* oklch */ color: oklch(56.6% 0.209 328.2);
Tailwind
colors: {
  custom: {
    50: '#cd79c9',
    500: '#b338b2',
    950: '#000000',
  },
}
SCSS
$custom: #b338b2;
$custom-light: #cd79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b338b2",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 300.488,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56597,
    "c": 0.20885,
    "h": 328.2
  },
  "luminance": 0.15626
}

Semantic roles & 50–950 ramp

primary
#B338B2
secondary
#82C582
accent
#DC4D4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338B2

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

Preview Lab → · Contrast checker → · Palette generator →

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