#B04FE8#B04FE8

#B04FE8 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.9% C 0.227 H 310.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B04FE8
RGBrgb(176, 79, 232)
HSLhsl(278, 77%, 61%)
HSVhsv(278, 66%, 91%)
CMYKcmyk(24.1%, 65.9%, 0%, 9%)
CIE-LABlab(52.56, 63.75, -61.09)
CIE-LCHlch(52.56, 88.29, 316.22°)
OKLaboklab(61.89% 0.1477 -0.1725)
OKLCHoklch(61.89% 0.227 310.6)
XYZxyz(35.2632, 20.6490, 78.4563)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04FE8 #87E84F
analogous
#634FE8 #B04FE8 #E84FD3
triadic
#B04FE8 #E8B04F #4FE8B0
tetradic
#B04FE8 #E8634F #87E84F #4FD3E8
square
#B04FE8 #E8634F #87E84F #4FD3E8
split-complementary
#B04FE8 #D3E84F #4FE863
monochromatic
#7216A7 #971DDD #B04FE8 #C885EF #E1BBF6

Accessibility & contrast

On white

4.09
#B04FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#B04FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04FE8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04FE8#FFFFFF#000000##000000
##B04FE81.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079ED
Deuteranopia (green-blind)
#3A7FE5
Tritanopia (blue-blind)
#A96F95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b04fe8;
/* rgb */ color: rgb(176, 79, 232);
/* oklch */ color: oklch(61.9% 0.227 310.6);
Tailwind
colors: {
  custom: {
    50: '#cc87f0',
    500: '#b04fe8',
    950: '#000000',
  },
}
SCSS
$custom: #b04fe8;
$custom-light: #cc87f0;
$custom-dark: #000000;
JSON
{
  "hex": "#b04fe8",
  "rgb": {
    "r": 176,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 278.039,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61893,
    "c": 0.22707,
    "h": 310.6
  },
  "luminance": 0.20648
}

Semantic roles & 50–950 ramp

primary
#B04FE8
secondary
#C2E6AD
accent
#D90C57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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