#B270E7#B270E7

#B270E7 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.5% C 0.179 H 307.9°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#B270E7
RGBrgb(178, 112, 231)
HSLhsl(273, 71%, 67%)
HSVhsv(273, 52%, 91%)
CMYKcmyk(22.9%, 51.5%, 0%, 9.4%)
CIE-LABlab(58.81, 47.73, -50.53)
CIE-LCHlch(58.81, 69.51, 313.37°)
OKLaboklab(66.48% 0.1101 -0.1417)
OKLCHoklch(66.48% 0.179 307.9)
XYZxyz(38.5752, 26.8233, 78.7311)
Luminance0.2682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B270E7 #A5E770
analogous
#7770E7 #B270E7 #E770E1
triadic
#B270E7 #E7B270 #70E7B2
tetradic
#B270E7 #E77770 #A5E770 #70E1E7
square
#B270E7 #E77770 #A5E770 #70E1E7
split-complementary
#B270E7 #E1E770 #70E777
monochromatic
#7720BD #963CDE #B270E7 #CEA4F0 #EAD9F9

Accessibility & contrast

On white

3.30
#B270E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#B270E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B270E7
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B270E7#FFFFFF#000000##000000
##B270E71.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8BEB
Deuteranopia (green-blind)
#618EE4
Tritanopia (blue-blind)
#AA85A1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b270e7;
/* rgb */ color: rgb(178, 112, 231);
/* oklch */ color: oklch(66.5% 0.179 307.9);
Tailwind
colors: {
  custom: {
    50: '#cc9bef',
    500: '#b270e7',
    950: '#000000',
  },
}
SCSS
$custom: #b270e7;
$custom-light: #cc9bef;
$custom-dark: #000000;
JSON
{
  "hex": "#b270e7",
  "rgb": {
    "r": 178,
    "g": 112,
    "b": 231
  },
  "hsl": {
    "h": 273.277,
    "s": 71.257,
    "l": 67.255
  },
  "oklch": {
    "l": 0.66483,
    "c": 0.17943,
    "h": 307.9
  },
  "luminance": 0.26823
}

Semantic roles & 50–950 ramp

primary
#B270E7
secondary
#D7ECC7
accent
#D31268
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84

Preview Lab

Preview with #B270E7

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

Preview Lab → · Contrast checker → · Palette generator →

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