#B04FE7#B04FE7

#B04FE7 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.8% C 0.226 H 310.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B04FE7
RGBrgb(176, 79, 231)
HSLhsl(278, 76%, 61%)
HSVhsv(278, 66%, 91%)
CMYKcmyk(23.8%, 65.8%, 0%, 9.4%)
CIE-LABlab(52.50, 63.54, -60.63)
CIE-LCHlch(52.50, 87.82, 316.34°)
OKLaboklab(61.83% 0.1477 -0.1712)
OKLCHoklch(61.83% 0.226 310.8)
XYZxyz(35.1215, 20.5924, 77.7104)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04FE7 #86E74F
analogous
#644FE7 #B04FE7 #E74FD2
triadic
#B04FE7 #E7B04F #4FE7B0
tetradic
#B04FE7 #E7644F #86E74F #4FD2E7
square
#B04FE7 #E7644F #86E74F #4FD2E7
split-complementary
#B04FE7 #D2E74F #4FE764
monochromatic
#7117A5 #971EDB #B04FE7 #C885EE #E0BBF6

Accessibility & contrast

On white

4.10
#B04FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#B04FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04FE7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04FE7#FFFFFF#000000##000000
##B04FE71.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#3C7FE4
Tritanopia (blue-blind)
#A96E95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b04fe7;
/* rgb */ color: rgb(176, 79, 231);
/* oklch */ color: oklch(61.8% 0.226 310.8);
Tailwind
colors: {
  custom: {
    50: '#cc87ef',
    500: '#b04fe7',
    950: '#000000',
  },
}
SCSS
$custom: #b04fe7;
$custom-light: #cc87ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b04fe7",
  "rgb": {
    "r": 176,
    "g": 79,
    "b": 231
  },
  "hsl": {
    "h": 278.289,
    "s": 76,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61828,
    "c": 0.22609,
    "h": 310.8
  },
  "luminance": 0.20592
}

Semantic roles & 50–950 ramp

primary
#B04FE7
secondary
#C1E6AC
accent
#D80D57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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