#B04DE2#B04DE2

#B04DE2 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.3% C 0.224 H 312.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#B04DE2
RGBrgb(176, 77, 226)
HSLhsl(280, 72%, 59%)
HSVhsv(280, 66%, 89%)
CMYKcmyk(22.1%, 65.9%, 0%, 11.4%)
CIE-LABlab(51.87, 63.37, -58.82)
CIE-LCHlch(51.87, 86.46, 317.13°)
OKLaboklab(61.28% 0.1503 -0.1658)
OKLCHoklch(61.28% 0.224 312.2)
XYZxyz(34.2834, 20.0298, 73.9969)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B04DE2 #7FE24D
analogous
#664DE2 #B04DE2 #E24DC9
triadic
#B04DE2 #E2B04D #4DE2B0
tetradic
#B04DE2 #E2664D #7FE24D #4DC9E2
square
#B04DE2 #E2664D #7FE24D #4DC9E2
split-complementary
#B04DE2 #C9E24D #4DE266
monochromatic
#70199B #9622D0 #B04DE2 #C782EB #DFB6F3

Accessibility & contrast

On white

4.20
#B04DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#B04DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B04DE2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B04DE2#FFFFFF#000000##000000
##B04DE21.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#3F7EDF
Tritanopia (blue-blind)
#AA6B91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b04de2;
/* rgb */ color: rgb(176, 77, 226);
/* oklch */ color: oklch(61.3% 0.224 312.2);
Tailwind
colors: {
  custom: {
    50: '#cc85ec',
    500: '#b04de2',
    950: '#000000',
  },
}
SCSS
$custom: #b04de2;
$custom-light: #cc85ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b04de2",
  "rgb": {
    "r": 176,
    "g": 77,
    "b": 226
  },
  "hsl": {
    "h": 279.866,
    "s": 71.981,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61276,
    "c": 0.22378,
    "h": 312.2
  },
  "luminance": 0.20029
}

Semantic roles & 50–950 ramp

primary
#B04DE2
secondary
#BCE2A8
accent
#EF3976
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B04DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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