#B202FE#B202FE

#B202FE is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 59.1% C 0.299 H 309.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B202FE
RGBrgb(178, 2, 254)
HSLhsl(282, 99%, 50%)
HSVhsv(282, 99%, 100%)
CMYKcmyk(29.9%, 99.2%, 0%, 0.4%)
CIE-LABlab(47.84, 87.51, -81.09)
CIE-LCHlch(47.84, 119.30, 317.18°)
OKLaboklab(59.13% 0.1903 -0.2308)
OKLCHoklch(59.13% 0.299 309.5)
XYZxyz(36.2675, 16.6649, 95.0528)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B202FE #4EFE02
analogous
#3402FE #B202FE #FE02CC
triadic
#B202FE #FEB202 #02FEB2
tetradic
#B202FE #FE3402 #4EFE02 #02CCFE
square
#B202FE #FE3402 #4EFE02 #02CCFE
split-complementary
#B202FE #CCFE02 #02FE34
monochromatic
#5D0185 #8801C2 #B202FE #C53FFE #D77CFE

Accessibility & contrast

On white

4.85
#B202FE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B202FE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B202FE
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B202FE#FFFFFF#000000##FFFFFF
##B202FE1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CFF
Deuteranopia (green-blind)
#0073FA
Tritanopia (blue-blind)
#A65E96
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b202fe;
/* rgb */ color: rgb(178, 2, 254);
/* oklch */ color: oklch(59.1% 0.299 309.5);
Tailwind
colors: {
  custom: {
    50: '#d16fff',
    500: '#b202fe',
    950: '#000000',
  },
}
SCSS
$custom: #b202fe;
$custom-light: #d16fff;
$custom-dark: #000000;
JSON
{
  "hex": "#b202fe",
  "rgb": {
    "r": 178,
    "g": 2,
    "b": 254
  },
  "hsl": {
    "h": 281.905,
    "s": 99.213,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59132,
    "c": 0.29915,
    "h": 309.5
  },
  "luminance": 0.16664
}

Semantic roles & 50–950 ramp

primary
#B202FE
secondary
#98E676
accent
#FF2969
background
#FDF7FF
surface
#FBEDFF
border
#D4C8D7
text
#150918
muted
#837B86

Preview Lab

Preview with #B202FE

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

Preview Lab → · Contrast checker → · Palette generator →

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