#B285EC#B285EC

#B285EC is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.1% C 0.152 H 302.8°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#B285EC
RGBrgb(178, 133, 236)
HSLhsl(266, 73%, 72%)
HSVhsv(266, 44%, 93%)
CMYKcmyk(24.6%, 43.6%, 0%, 7.5%)
CIE-LABlab(63.59, 37.44, -45.75)
CIE-LCHlch(63.59, 59.12, 309.30°)
OKLaboklab(70.13% 0.0825 -0.1278)
OKLCHoklch(70.13% 0.152 302.8)
XYZxyz(41.8847, 32.2962, 83.3678)
Luminance0.3230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B285EC #BFEC85
analogous
#858BEC #B285EC #E685EC
triadic
#B285EC #ECB285 #85ECB2
tetradic
#B285EC #EC858B #BFEC85 #85ECE6
square
#B285EC #EC858B #BFEC85 #85ECE6
split-complementary
#B285EC #ECE685 #8BEC85
monochromatic
#7021D5 #9150E4 #B285EC #D3BAF4 #EEE5FB

Accessibility & contrast

On white

2.82
#B285EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#B285EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B285EC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B285EC#FFFFFF#000000##000000
##B285EC1.002.827.467.46
#FFFFFF2.821.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99F0
Deuteranopia (green-blind)
#749AE9
Tritanopia (blue-blind)
#A896AD
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #b285ec;
/* rgb */ color: rgb(178, 133, 236);
/* oklch */ color: oklch(70.1% 0.152 302.8);
Tailwind
colors: {
  custom: {
    50: '#cba9f2',
    500: '#b285ec',
    950: '#000000',
  },
}
SCSS
$custom: #b285ec;
$custom-light: #cba9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b285ec",
  "rgb": {
    "r": 178,
    "g": 133,
    "b": 236
  },
  "hsl": {
    "h": 266.214,
    "s": 73.05,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70128,
    "c": 0.15213,
    "h": 302.8
  },
  "luminance": 0.32296
}

Semantic roles & 50–950 ramp

primary
#B285EC
secondary
#E7F3D8
accent
#D5107F
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B285EC

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

Preview Lab → · Contrast checker → · Palette generator →

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