#B308FE#B308FE

#B308FE is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 59.4% C 0.298 H 309.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B308FE
RGBrgb(179, 8, 254)
HSLhsl(282, 99%, 51%)
HSVhsv(282, 97%, 100%)
CMYKcmyk(29.5%, 96.9%, 0%, 0.4%)
CIE-LABlab(48.15, 87.13, -80.56)
CIE-LCHlch(48.15, 118.66, 317.24°)
OKLaboklab(59.38% 0.1905 -0.2292)
OKLCHoklch(59.38% 0.298 309.7)
XYZxyz(36.5630, 16.9139, 95.0853)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B308FE #53FE08
analogous
#3808FE #B308FE #FE08CE
triadic
#B308FE #FEB308 #08FEB3
tetradic
#B308FE #FE3808 #53FE08 #08CEFE
square
#B308FE #FE3808 #53FE08 #08CEFE
split-complementary
#B308FE #CEFE08 #08FE38
monochromatic
#61018B #8B01C8 #B308FE #C645FE #D982FE

Accessibility & contrast

On white

4.79
#B308FE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#B308FE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B308FE
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B308FE#FFFFFF#000000##FFFFFF
##B308FE1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DFF
Deuteranopia (green-blind)
#0074FA
Tritanopia (blue-blind)
#A75F96
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b308fe;
/* rgb */ color: rgb(179, 8, 254);
/* oklch */ color: oklch(59.4% 0.298 309.7);
Tailwind
colors: {
  custom: {
    50: '#d170ff',
    500: '#b308fe',
    950: '#000000',
  },
}
SCSS
$custom: #b308fe;
$custom-light: #d170ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b308fe",
  "rgb": {
    "r": 179,
    "g": 8,
    "b": 254
  },
  "hsl": {
    "h": 281.707,
    "s": 99.194,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59378,
    "c": 0.29807,
    "h": 309.7
  },
  "luminance": 0.16913
}

Semantic roles & 50–950 ramp

primary
#B308FE
secondary
#9CE77B
accent
#FF296A
background
#FDF7FF
surface
#FBEDFF
border
#D4C8D7
text
#150918
muted
#837B86

Preview Lab

Preview with #B308FE

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

Preview Lab → · Contrast checker → · Palette generator →

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