#B255EC#B255EC

#B255EC is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.1% C 0.224 H 309.8°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B255EC
RGBrgb(178, 85, 236)
HSLhsl(277, 80%, 63%)
HSVhsv(277, 64%, 93%)
CMYKcmyk(24.6%, 64%, 0%, 7.5%)
CIE-LABlab(54.05, 62.32, -60.94)
CIE-LCHlch(54.05, 87.16, 315.64°)
OKLaboklab(63.09% 0.1433 -0.172)
OKLCHoklch(63.09% 0.224 309.8)
XYZxyz(36.7460, 22.0188, 81.6549)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B255EC #8FEC55
analogous
#6755EC #B255EC #EC55DA
triadic
#B255EC #ECB255 #55ECB2
tetradic
#B255EC #EC6755 #8FEC55 #55DAEC
square
#B255EC #EC6755 #8FEC55 #55DAEC
split-complementary
#B255EC #DAEC55 #55EC67
monochromatic
#7614B3 #991EE6 #B255EC #CB8CF2 #E4C3F8

Accessibility & contrast

On white

3.89
#B255EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#B255EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B255EC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B255EC#FFFFFF#000000##000000
##B255EC1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#4083E9
Tritanopia (blue-blind)
#AA7499
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b255ec;
/* rgb */ color: rgb(178, 85, 236);
/* oklch */ color: oklch(63.1% 0.224 309.8);
Tailwind
colors: {
  custom: {
    50: '#cd8af3',
    500: '#b255ec',
    950: '#000000',
  },
}
SCSS
$custom: #b255ec;
$custom-light: #cd8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#b255ec",
  "rgb": {
    "r": 178,
    "g": 85,
    "b": 236
  },
  "hsl": {
    "h": 276.954,
    "s": 79.894,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63094,
    "c": 0.22388,
    "h": 309.8
  },
  "luminance": 0.22018
}

Semantic roles & 50–950 ramp

primary
#B255EC
secondary
#C8EAB3
accent
#DC095A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B255EC

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

Preview Lab → · Contrast checker → · Palette generator →

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