#B270EC#B270EC

#B270EC is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.8% C 0.185 H 306.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#B270EC
RGBrgb(178, 112, 236)
HSLhsl(272, 77%, 68%)
HSVhsv(272, 53%, 93%)
CMYKcmyk(24.6%, 52.5%, 0%, 7.5%)
CIE-LABlab(59.08, 48.87, -52.89)
CIE-LCHlch(59.08, 72.01, 312.73°)
OKLaboklab(66.77% 0.1105 -0.1486)
OKLCHoklch(66.77% 0.185 306.6)
XYZxyz(39.2915, 27.1098, 82.5034)
Luminance0.2711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B270EC #AAEC70
analogous
#7470EC #B270EC #EC70E8
triadic
#B270EC #ECB270 #70ECB2
tetradic
#B270EC #EC7470 #AAEC70 #70E8EC
square
#B270EC #EC7470 #AAEC70 #70E8EC
split-complementary
#B270EC #E8EC70 #70EC74
monochromatic
#761AC7 #953AE5 #B270EC #CFA6F3 #ECDCFA

Accessibility & contrast

On white

3.27
#B270EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#B270EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B270EC
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B270EC#FFFFFF#000000##000000
##B270EC1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#498CF0
Deuteranopia (green-blind)
#5E8FE9
Tritanopia (blue-blind)
#A986A4
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b270ec;
/* rgb */ color: rgb(178, 112, 236);
/* oklch */ color: oklch(66.8% 0.185 306.6);
Tailwind
colors: {
  custom: {
    50: '#cc9bf3',
    500: '#b270ec',
    950: '#000000',
  },
}
SCSS
$custom: #b270ec;
$custom-light: #cc9bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#b270ec",
  "rgb": {
    "r": 178,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 271.935,
    "s": 76.543,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66766,
    "c": 0.18516,
    "h": 306.6
  },
  "luminance": 0.27109
}

Semantic roles & 50–950 ramp

primary
#B270EC
secondary
#DBEFC9
accent
#D90D6C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B270EC

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

Preview Lab → · Contrast checker → · Palette generator →

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