#B840FF#B840FF

#B840FF is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.9% C 0.268 H 309.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B840FF
RGBrgb(184, 64, 255)
HSLhsl(278, 100%, 63%)
HSVhsv(278, 75%, 100%)
CMYKcmyk(27.8%, 74.9%, 0%, 0%)
CIE-LABlab(53.03, 76.03, -73.13)
CIE-LCHlch(53.03, 105.49, 316.11°)
OKLaboklab(62.93% 0.1689 -0.2075)
OKLCHoklch(62.93% 0.268 309.1)
XYZxyz(39.6469, 21.0779, 96.5682)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B840FF #87FF40
analogous
#5840FF #B840FF #FF40E7
triadic
#B840FF #FFB840 #40FFB8
tetradic
#B840FF #FF5840 #87FF40 #40E7FF
square
#B840FF #FF5840 #87FF40 #40E7FF
split-complementary
#B840FF #E7FF40 #40FF58
monochromatic
#7C00C5 #A103FF #B840FF #CF7DFF #E5BAFF

Accessibility & contrast

On white

4.03
#B840FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#B840FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B840FF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B840FF#FFFFFF#000000##000000
##B840FF1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#0080FB
Tritanopia (blue-blind)
#AD6F9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #b840ff;
/* rgb */ color: rgb(184, 64, 255);
/* oklch */ color: oklch(62.9% 0.268 309.1);
Tailwind
colors: {
  custom: {
    50: '#d381ff',
    500: '#b840ff',
    950: '#000000',
  },
}
SCSS
$custom: #b840ff;
$custom-light: #d381ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b840ff",
  "rgb": {
    "r": 184,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 277.696,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62934,
    "c": 0.26759,
    "h": 309.1
  },
  "luminance": 0.21077
}

Semantic roles & 50–950 ramp

primary
#B840FF
secondary
#C4F0AB
accent
#E60055
background
#FDF8FF
surface
#FBEFFF
border
#D4CAD7
text
#150B18
muted
#837C86

Preview Lab

Preview with #B840FF

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

Preview Lab → · Contrast checker → · Palette generator →

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