#B862F2#B862F2

#B862F2 is a light, highly saturated violet. Relative luminance 0.253; OKLCH L 65.8% C 0.214 H 309.3°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#B862F2
RGBrgb(184, 98, 242)
HSLhsl(276, 85%, 67%)
HSVhsv(276, 60%, 95%)
CMYKcmyk(24%, 59.5%, 0%, 5.1%)
CIE-LABlab(57.40, 58.80, -58.86)
CIE-LCHlch(57.40, 83.20, 314.97°)
OKLaboklab(65.8% 0.1355 -0.1658)
OKLCHoklch(65.8% 0.214 309.3)
XYZxyz(40.1587, 25.3372, 86.7622)
Luminance0.2534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B862F2 #9CF262
analogous
#7062F2 #B862F2 #F262E4
triadic
#B862F2 #F2B862 #62F2B8
tetradic
#B862F2 #F27062 #9CF262 #62E4F2
square
#B862F2 #F27062 #9CF262 #62E4F2
split-complementary
#B862F2 #E4F262 #62F270
monochromatic
#7F11C9 #9E29ED #B862F2 #D29BF7 #EBD3FB

Accessibility & contrast

On white

3.46
#B862F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#B862F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B862F2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B862F2#FFFFFF#000000##000000
##B862F21.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2686F7
Deuteranopia (green-blind)
#4F8BEF
Tritanopia (blue-blind)
#B07EA1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #b862f2;
/* rgb */ color: rgb(184, 98, 242);
/* oklch */ color: oklch(65.8% 0.214 309.3);
Tailwind
colors: {
  custom: {
    50: '#d193f7',
    500: '#b862f2',
    950: '#000000',
  },
}
SCSS
$custom: #b862f2;
$custom-light: #d193f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b862f2",
  "rgb": {
    "r": 184,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 275.833,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65798,
    "c": 0.21414,
    "h": 309.3
  },
  "luminance": 0.25337
}

Semantic roles & 50–950 ramp

primary
#B862F2
secondary
#D3EFC1
accent
#E1045D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #B862F2

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

Preview Lab → · Contrast checker → · Palette generator →

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