#B204FF#B204FF

#B204FF is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 59.3% C 0.299 H 309.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B204FF
RGBrgb(178, 4, 255)
HSLhsl(282, 100%, 51%)
HSVhsv(282, 98%, 100%)
CMYKcmyk(30.2%, 98.4%, 0%, 0%)
CIE-LABlab(47.97, 87.52, -81.42)
CIE-LCHlch(47.97, 119.54, 317.07°)
OKLaboklab(59.25% 0.1896 -0.2318)
OKLCHoklch(59.25% 0.299 309.3)
XYZxyz(36.4498, 16.7726, 95.9056)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B204FF #51FF04
analogous
#3504FF #B204FF #FF04CE
triadic
#B204FF #FFB204 #04FFB2
tetradic
#B204FF #FF3504 #51FF04 #04CEFF
square
#B204FF #FF3504 #51FF04 #04CEFF
split-complementary
#B204FF #CEFF04 #04FF35
monochromatic
#5F0089 #8900C6 #B204FF #C541FF #D87EFF

Accessibility & contrast

On white

4.82
#B204FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B204FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B204FF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B204FF#FFFFFF#000000##FFFFFF
##B204FF1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CFF
Deuteranopia (green-blind)
#0073FB
Tritanopia (blue-blind)
#A65F96
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b204ff;
/* rgb */ color: rgb(178, 4, 255);
/* oklch */ color: oklch(59.3% 0.299 309.3);
Tailwind
colors: {
  custom: {
    50: '#d16fff',
    500: '#b204ff',
    950: '#000000',
  },
}
SCSS
$custom: #b204ff;
$custom-light: #d16fff;
$custom-dark: #000000;
JSON
{
  "hex": "#b204ff",
  "rgb": {
    "r": 178,
    "g": 4,
    "b": 255
  },
  "hsl": {
    "h": 281.594,
    "s": 100,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59251,
    "c": 0.29946,
    "h": 309.3
  },
  "luminance": 0.16772
}

Semantic roles & 50–950 ramp

primary
#B204FF
secondary
#9AE778
accent
#FF296B
background
#FDF7FF
surface
#FBEDFF
border
#D4C8D7
text
#150918
muted
#837B86

Preview Lab

Preview with #B204FF

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

Preview Lab → · Contrast checker → · Palette generator →

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