#B274F8#B274F8

#B274F8 is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.1% C 0.193 H 303.3°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#B274F8
RGBrgb(178, 116, 248)
HSLhsl(268, 90%, 71%)
HSVhsv(268, 53%, 97%)
CMYKcmyk(28.2%, 53.2%, 0%, 2.7%)
CIE-LABlab(60.55, 49.52, -57.20)
CIE-LCHlch(60.55, 75.66, 310.88°)
OKLaboklab(68.06% 0.1061 -0.1612)
OKLCHoklch(68.06% 0.193 303.3)
XYZxyz(41.5450, 28.7331, 92.1461)
Luminance0.2873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B274F8 #BAF874
analogous
#7478F8 #B274F8 #F474F8
triadic
#B274F8 #F8B274 #74F8B2
tetradic
#B274F8 #F87478 #BAF874 #74F8F4
square
#B274F8 #F87478 #BAF874 #74F8F4
split-complementary
#B274F8 #F8F474 #78F874
monochromatic
#720CE6 #923AF5 #B274F8 #D2AEFB #EFE2FE

Accessibility & contrast

On white

3.11
#B274F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#B274F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B274F8
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B274F8#FFFFFF#000000##000000
##B274F81.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4591FC
Deuteranopia (green-blind)
#5992F5
Tritanopia (blue-blind)
#A58DAB
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b274f8;
/* rgb */ color: rgb(178, 116, 248);
/* oklch */ color: oklch(68.1% 0.193 303.3);
Tailwind
colors: {
  custom: {
    50: '#cc9efb',
    500: '#b274f8',
    950: '#000000',
  },
}
SCSS
$custom: #b274f8;
$custom-light: #cc9efb;
$custom-dark: #000000;
JSON
{
  "hex": "#b274f8",
  "rgb": {
    "r": 178,
    "g": 116,
    "b": 248
  },
  "hsl": {
    "h": 268.182,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68062,
    "c": 0.19297,
    "h": 303.3
  },
  "luminance": 0.28733
}

Semantic roles & 50–950 ramp

primary
#B274F8
secondary
#E5F5D3
accent
#E6007A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B274F8

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

Preview Lab → · Contrast checker → · Palette generator →

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