#B366E4#B366E4

#B366E4 is a light, vivid violet. Relative luminance 0.247; OKLCH L 65.0% C 0.192 H 310.3°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B366E4
RGBrgb(179, 102, 228)
HSLhsl(277, 70%, 65%)
HSVhsv(277, 55%, 89%)
CMYKcmyk(21.5%, 55.3%, 0%, 10.6%)
CIE-LABlab(56.77, 52.54, -52.09)
CIE-LCHlch(56.77, 73.98, 315.25°)
OKLaboklab(64.95% 0.1241 -0.1462)
OKLCHoklch(64.95% 0.192 310.3)
XYZxyz(37.3427, 24.6886, 76.1819)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B366E4 #97E466
analogous
#7466E4 #B366E4 #E466D6
triadic
#B366E4 #E4B366 #66E4B3
tetradic
#B366E4 #E47466 #97E466 #66D6E4
square
#B366E4 #E47466 #97E466 #66D6E4
split-complementary
#B366E4 #D6E466 #66E474
monochromatic
#781FB0 #9932DB #B366E4 #CD9AED #E7CEF6

Accessibility & contrast

On white

3.54
#B366E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#B366E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B366E4
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B366E4#FFFFFF#000000##000000
##B366E41.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F85E8
Deuteranopia (green-blind)
#5A8AE1
Tritanopia (blue-blind)
#AD7C9B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b366e4;
/* rgb */ color: rgb(179, 102, 228);
/* oklch */ color: oklch(65.0% 0.192 310.3);
Tailwind
colors: {
  custom: {
    50: '#cd95ed',
    500: '#b366e4',
    950: '#000000',
  },
}
SCSS
$custom: #b366e4;
$custom-light: #cd95ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b366e4",
  "rgb": {
    "r": 179,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 276.667,
    "s": 70,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64953,
    "c": 0.19176,
    "h": 310.3
  },
  "luminance": 0.24688
}

Semantic roles & 50–950 ramp

primary
#B366E4
secondary
#CEE9BD
accent
#D2145E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B366E4

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

Preview Lab → · Contrast checker → · Palette generator →

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