#B102AA#B102AA

#B102AA is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 53.0% C 0.240 H 330.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#B102AA
RGBrgb(177, 2, 170)
HSLhsl(302, 98%, 35%)
HSVhsv(302, 99%, 69%)
CMYKcmyk(0%, 98.9%, 4%, 30.6%)
CIE-LABlab(41.68, 73.47, -42.66)
CIE-LCHlch(41.68, 84.95, 329.86°)
OKLaboklab(52.97% 0.2089 -0.1181)
OKLCHoklch(52.97% 0.24 330.5)
XYZxyz(25.4088, 12.2950, 39.0574)
Luminance0.1229 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B102AA #02B109
analogous
#6002B1 #B102AA #B10252
triadic
#B102AA #AAB102 #02AAB1
tetradic
#B102AA #B16002 #02B109 #0252B1
square
#B102AA #B16002 #02B109 #0252B1
split-complementary
#B102AA #52B102 #02B160
monochromatic
#380136 #740170 #B102AA #EE03E4 #FD31F5

Accessibility & contrast

On white

6.07
#B102AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#B102AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B102AA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B102AA#FFFFFF#000000##FFFFFF
##B102AA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#4B69A7
Tritanopia (blue-blind)
#B82C63
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b102aa;
/* rgb */ color: rgb(177, 2, 170);
/* oklch */ color: oklch(53.0% 0.240 330.5);
Tailwind
colors: {
  custom: {
    50: '#cd6ac4',
    500: '#b102aa',
    950: '#000000',
  },
}
SCSS
$custom: #b102aa;
$custom-light: #cd6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#b102aa",
  "rgb": {
    "r": 177,
    "g": 2,
    "b": 170
  },
  "hsl": {
    "h": 302.4,
    "s": 97.765,
    "l": 35.098
  },
  "oklch": {
    "l": 0.5297,
    "c": 0.23995,
    "h": 330.5
  },
  "luminance": 0.12293
}

Semantic roles & 50–950 ramp

primary
#B102AA
secondary
#36D93C
accent
#FF3129
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B102AA

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

Preview Lab → · Contrast checker → · Palette generator →

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