#B274EC#B274EC

#B274EC is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.4% C 0.179 H 306.0°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#B274EC
RGBrgb(178, 116, 236)
HSLhsl(271, 76%, 69%)
HSVhsv(271, 51%, 93%)
CMYKcmyk(24.6%, 50.8%, 0%, 7.5%)
CIE-LABlab(59.90, 46.74, -51.58)
CIE-LCHlch(59.90, 69.61, 312.18°)
OKLaboklab(67.38% 0.1053 -0.1448)
OKLCHoklch(67.38% 0.179 306)
XYZxyz(39.7427, 28.0122, 82.6538)
Luminance0.2801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B274EC #AEEC74
analogous
#7674EC #B274EC #EC74EA
triadic
#B274EC #ECB274 #74ECB2
tetradic
#B274EC #EC7674 #AEEC74 #74EAEC
square
#B274EC #EC7674 #AEEC74 #74EAEC
split-complementary
#B274EC #EAEC74 #74EC76
monochromatic
#761CCA #943EE5 #B274EC #D0AAF3 #EEE0FB

Accessibility & contrast

On white

3.18
#B274EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#B274EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B274EC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B274EC#FFFFFF#000000##000000
##B274EC1.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#508EF0
Deuteranopia (green-blind)
#6291E9
Tritanopia (blue-blind)
#A989A5
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b274ec;
/* rgb */ color: rgb(178, 116, 236);
/* oklch */ color: oklch(67.4% 0.179 306.0);
Tailwind
colors: {
  custom: {
    50: '#cc9ef3',
    500: '#b274ec',
    950: '#000000',
  },
}
SCSS
$custom: #b274ec;
$custom-light: #cc9ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#b274ec",
  "rgb": {
    "r": 178,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 271,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.67375,
    "c": 0.179,
    "h": 306
  },
  "luminance": 0.28012
}

Semantic roles & 50–950 ramp

primary
#B274EC
secondary
#DDEFCC
accent
#D80D6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #B274EC

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

Preview Lab → · Contrast checker → · Palette generator →

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