#B274EF#B274EF

#B274EF is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.5% C 0.182 H 305.3°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#B274EF
RGBrgb(178, 116, 239)
HSLhsl(270, 79%, 70%)
HSVhsv(270, 51%, 94%)
CMYKcmyk(25.5%, 51.5%, 0%, 6.3%)
CIE-LABlab(60.06, 47.43, -53.00)
CIE-LCHlch(60.06, 71.12, 311.82°)
OKLaboklab(67.54% 0.1055 -0.1489)
OKLCHoklch(67.54% 0.182 305.3)
XYZxyz(40.1822, 28.1880, 84.9686)
Luminance0.2819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B274EF #B1EF74
analogous
#7574EF #B274EF #EF74EF
triadic
#B274EF #EFB274 #74EFB2
tetradic
#B274EF #EF7574 #B1EF74 #74EFEF
square
#B274EF #EF7574 #B1EF74 #74EFEF
split-complementary
#B274EF #EFEF74 #74EF75
monochromatic
#7518D1 #943DE9 #B274EF #D0ABF5 #EFE2FC

Accessibility & contrast

On white

3.16
#B274EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#B274EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B274EF
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B274EF#FFFFFF#000000##000000
##B274EF1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF3
Deuteranopia (green-blind)
#6091EC
Tritanopia (blue-blind)
#A88AA7
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b274ef;
/* rgb */ color: rgb(178, 116, 239);
/* oklch */ color: oklch(67.5% 0.182 305.3);
Tailwind
colors: {
  custom: {
    50: '#cc9ef5',
    500: '#b274ef',
    950: '#000000',
  },
}
SCSS
$custom: #b274ef;
$custom-light: #cc9ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#b274ef",
  "rgb": {
    "r": 178,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 270.244,
    "s": 79.355,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67544,
    "c": 0.18249,
    "h": 305.3
  },
  "luminance": 0.28188
}

Semantic roles & 50–950 ramp

primary
#B274EF
secondary
#DFF1CE
accent
#DC0A72
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #B274EF

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

Preview Lab → · Contrast checker → · Palette generator →

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