#B246EB#B246EB

#B246EB is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.4% C 0.241 H 311.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B246EB
RGBrgb(178, 70, 235)
HSLhsl(279, 80%, 60%)
HSVhsv(279, 70%, 92%)
CMYKcmyk(24.3%, 70.2%, 0%, 7.8%)
CIE-LABlab(51.66, 68.58, -64.22)
CIE-LCHlch(51.66, 93.96, 316.88°)
OKLaboklab(61.37% 0.1591 -0.1816)
OKLCHoklch(61.37% 0.241 311.2)
XYZxyz(35.5428, 19.8443, 80.5392)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B246EB #7FEB46
analogous
#6046EB #B246EB #EB46D1
triadic
#B246EB #EBB246 #46EBB2
tetradic
#B246EB #EB6046 #7FEB46 #46D1EB
square
#B246EB #EB6046 #7FEB46 #46D1EB
split-complementary
#B246EB #D1EB46 #46EB60
monochromatic
#7212A5 #9818DC #B246EB #C97DF1 #E0B4F7

Accessibility & contrast

On white

4.23
#B246EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#B246EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B246EB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B246EB#FFFFFF#000000##000000
##B246EB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#2E7DE7
Tritanopia (blue-blind)
#AB6A94
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b246eb;
/* rgb */ color: rgb(178, 70, 235);
/* oklch */ color: oklch(61.4% 0.241 311.2);
Tailwind
colors: {
  custom: {
    50: '#ce82f2',
    500: '#b246eb',
    950: '#000000',
  },
}
SCSS
$custom: #b246eb;
$custom-light: #ce82f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b246eb",
  "rgb": {
    "r": 178,
    "g": 70,
    "b": 235
  },
  "hsl": {
    "h": 279.273,
    "s": 80.488,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61365,
    "c": 0.24143,
    "h": 311.2
  },
  "luminance": 0.19843
}

Semantic roles & 50–950 ramp

primary
#B246EB
secondary
#BDE6A7
accent
#F73175
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #B246EB

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

Preview Lab → · Contrast checker → · Palette generator →

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