#B04CE7#B04CE7

#B04CE7 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.5% C 0.230 H 311.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#B04CE7
RGBrgb(176, 76, 231)
HSLhsl(279, 76%, 60%)
HSVhsv(279, 67%, 91%)
CMYKcmyk(23.8%, 67.1%, 0%, 9.4%)
CIE-LABlab(52.03, 64.85, -61.39)
CIE-LCHlch(52.03, 89.30, 316.57°)
OKLaboklab(61.49% 0.1509 -0.1734)
OKLCHoklch(61.49% 0.23 311)
XYZxyz(34.9100, 20.1693, 77.6399)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04CE7 #83E74C
analogous
#634CE7 #B04CE7 #E74CD0
triadic
#B04CE7 #E7B04C #4CE7B0
tetradic
#B04CE7 #E7634C #83E74C #4CD0E7
square
#B04CE7 #E7634C #83E74C #4CD0E7
split-complementary
#B04CE7 #D0E74C #4CE763
monochromatic
#7116A3 #961DD9 #B04CE7 #C882EE #E0B8F5

Accessibility & contrast

On white

4.17
#B04CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#B04CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04CE7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04CE7#FFFFFF#000000##000000
##B04CE71.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EC
Deuteranopia (green-blind)
#387EE4
Tritanopia (blue-blind)
#A96C94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b04ce7;
/* rgb */ color: rgb(176, 76, 231);
/* oklch */ color: oklch(61.5% 0.230 311.0);
Tailwind
colors: {
  custom: {
    50: '#cc85ef',
    500: '#b04ce7',
    950: '#000000',
  },
}
SCSS
$custom: #b04ce7;
$custom-light: #cc85ef;
$custom-dark: #000000;
JSON
{
  "hex": "#b04ce7",
  "rgb": {
    "r": 176,
    "g": 76,
    "b": 231
  },
  "hsl": {
    "h": 278.71,
    "s": 76.355,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61489,
    "c": 0.22986,
    "h": 311
  },
  "luminance": 0.20169
}

Semantic roles & 50–950 ramp

primary
#B04CE7
secondary
#BFE5AA
accent
#D90D55
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B04CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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