#B040FF#B040FF

#B040FF is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 62.0% C 0.266 H 306.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B040FF
RGBrgb(176, 64, 255)
HSLhsl(275, 100%, 63%)
HSVhsv(275, 75%, 100%)
CMYKcmyk(31%, 74.9%, 0%, 0%)
CIE-LABlab(51.97, 74.67, -74.91)
CIE-LCHlch(51.97, 105.77, 314.91°)
OKLaboklab(61.96% 0.1587 -0.213)
OKLCHoklch(61.96% 0.266 306.7)
XYZxyz(37.7840, 20.1173, 96.4809)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B040FF #8FFF40
analogous
#5040FF #B040FF #FF40EF
triadic
#B040FF #FFB040 #40FFB0
tetradic
#B040FF #FF5040 #8FFF40 #40EFFF
square
#B040FF #FF5040 #8FFF40 #40EFFF
split-complementary
#B040FF #EFFF40 #40FF50
monochromatic
#7300C5 #9703FF #B040FF #C97DFF #E3BAFF

Accessibility & contrast

On white

4.18
#B040FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#B040FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B040FF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B040FF#FFFFFF#000000##000000
##B040FF1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#007DFB
Tritanopia (blue-blind)
#A2709E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b040ff;
/* rgb */ color: rgb(176, 64, 255);
/* oklch */ color: oklch(62.0% 0.266 306.7);
Tailwind
colors: {
  custom: {
    50: '#ce80ff',
    500: '#b040ff',
    950: '#000000',
  },
}
SCSS
$custom: #b040ff;
$custom-light: #ce80ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b040ff",
  "rgb": {
    "r": 176,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 275.183,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61963,
    "c": 0.26562,
    "h": 306.7
  },
  "luminance": 0.20117
}

Semantic roles & 50–950 ramp

primary
#B040FF
secondary
#C7F0AB
accent
#E6005F
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B18
muted
#837C86

Preview Lab

Preview with #B040FF

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

Preview Lab → · Contrast checker → · Palette generator →

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