#B338B4#B338B4

#B338B4 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.210 H 327.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B338B4
RGBrgb(179, 56, 180)
HSLhsl(300, 53%, 46%)
HSVhsv(300, 69%, 71%)
CMYKcmyk(0.6%, 68.9%, 0%, 29.4%)
CIE-LABlab(46.59, 63.86, -40.75)
CIE-LCHlch(46.59, 75.75, 327.46°)
OKLaboklab(56.71% 0.1776 -0.1128)
OKLCHoklch(56.71% 0.21 327.6)
XYZxyz(28.2424, 15.7093, 44.7158)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338B4 #39B438
analogous
#7538B4 #B338B4 #B43877
triadic
#B338B4 #B4B338 #38B4B3
tetradic
#B338B4 #B47538 #39B438 #3877B4
square
#B338B4 #B47538 #39B438 #3877B4
split-complementary
#B338B4 #77B438 #38B475
monochromatic
#561B57 #852985 #B338B4 #CC5DCD #DA8BDB

Accessibility & contrast

On white

5.07
#B338B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B338B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B338B4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338B4#FFFFFF#000000##FFFFFF
##B338B41.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2364B8
Deuteranopia (green-blind)
#5774B1
Tritanopia (blue-blind)
#B84A72
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b338b4;
/* rgb */ color: rgb(179, 56, 180);
/* oklch */ color: oklch(56.7% 0.210 327.6);
Tailwind
colors: {
  custom: {
    50: '#cd7acb',
    500: '#b338b4',
    950: '#000000',
  },
}
SCSS
$custom: #b338b4;
$custom-light: #cd7acb;
$custom-dark: #000000;
JSON
{
  "hex": "#b338b4",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 299.516,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56709,
    "c": 0.21043,
    "h": 327.6
  },
  "luminance": 0.15707
}

Semantic roles & 50–950 ramp

primary
#B338B4
secondary
#83C582
accent
#DC4C4D
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B338B4

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

Preview Lab → · Contrast checker → · Palette generator →

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