#B282EC#B282EC

#B282EC is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.6% C 0.157 H 303.5°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#B282EC
RGBrgb(178, 130, 236)
HSLhsl(267, 74%, 72%)
HSVhsv(267, 45%, 93%)
CMYKcmyk(24.6%, 44.9%, 0%, 7.5%)
CIE-LABlab(62.92, 39.10, -46.81)
CIE-LCHlch(62.92, 60.99, 309.88°)
OKLaboklab(69.62% 0.0866 -0.1309)
OKLCHoklch(69.62% 0.157 303.5)
XYZxyz(41.4798, 31.4865, 83.2329)
Luminance0.3149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B282EC #BCEC82
analogous
#8287EC #B282EC #E782EC
triadic
#B282EC #ECB282 #82ECB2
tetradic
#B282EC #EC8287 #BCEC82 #82ECE7
square
#B282EC #EC8287 #BCEC82 #82ECE7
split-complementary
#B282EC #ECE782 #87EC82
monochromatic
#7120D3 #914DE4 #B282EC #D3B7F4 #EFE4FB

Accessibility & contrast

On white

2.88
#B282EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#B282EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B282EC
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B282EC#FFFFFF#000000##000000
##B282EC1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6597F0
Deuteranopia (green-blind)
#7198E9
Tritanopia (blue-blind)
#A894AC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b282ec;
/* rgb */ color: rgb(178, 130, 236);
/* oklch */ color: oklch(69.6% 0.157 303.5);
Tailwind
colors: {
  custom: {
    50: '#cba7f2',
    500: '#b282ec',
    950: '#000000',
  },
}
SCSS
$custom: #b282ec;
$custom-light: #cba7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b282ec",
  "rgb": {
    "r": 178,
    "g": 130,
    "b": 236
  },
  "hsl": {
    "h": 267.17,
    "s": 73.611,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69624,
    "c": 0.15692,
    "h": 303.5
  },
  "luminance": 0.31486
}

Semantic roles & 50–950 ramp

primary
#B282EC
secondary
#E6F2D7
accent
#D6107C
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #B282EC

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

Preview Lab → · Contrast checker → · Palette generator →

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