#B274DC#B274DC

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

Color values

HEX#B274DC
RGBrgb(178, 116, 220)
HSLhsl(276, 60%, 66%)
HSVhsv(276, 47%, 86%)
CMYKcmyk(19.1%, 47.3%, 0%, 13.7%)
CIE-LABlab(59.09, 43.13, -43.93)
CIE-LCHlch(59.09, 61.57, 314.47°)
OKLaboklab(66.51% 0.1036 -0.1225)
OKLCHoklch(66.51% 0.16 310.2)
XYZxyz(37.5214, 27.1237, 70.9551)
Luminance0.2712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B274DC #9EDC74
analogous
#7E74DC #B274DC #DC74D2
triadic
#B274DC #DCB274 #74DCB2
tetradic
#B274DC #DC7E74 #9EDC74 #74D2DC
square
#B274DC #DC7E74 #9EDC74 #74D2DC
split-complementary
#B274DC #D2DC74 #74DC7E
monochromatic
#772BAB #9743D0 #B274DC #CDA5E8 #E8D6F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B274DC#FFFFFF#000000##000000
##B274DC1.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)
#5B8BE0
Deuteranopia (green-blind)
#6C8FD9
Tritanopia (blue-blind)
#AD859E
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b274dc;
/* rgb */ color: rgb(178, 116, 220);
/* oklch */ color: oklch(66.5% 0.160 310.2);
Tailwind
colors: {
  custom: {
    50: '#cb9de7',
    500: '#b274dc',
    950: '#000000',
  },
}
SCSS
$custom: #b274dc;
$custom-light: #cb9de7;
$custom-dark: #000000;
JSON
{
  "hex": "#b274dc",
  "rgb": {
    "r": 178,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 275.769,
    "s": 59.77,
    "l": 65.882
  },
  "oklch": {
    "l": 0.66509,
    "c": 0.1604,
    "h": 310.2
  },
  "luminance": 0.27123
}

Semantic roles & 50–950 ramp

primary
#B274DC
secondary
#D3E7C5
accent
#C71E62
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B274DC

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

Preview Lab → · Contrast checker → · Palette generator →

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