#B299F9#B299F9

#B299F9 is a light, vivid violet. Relative luminance 0.391; OKLCH L 74.3% C 0.137 H 294.8°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#B299F9
RGBrgb(178, 153, 249)
HSLhsl(256, 89%, 79%)
HSVhsv(256, 39%, 98%)
CMYKcmyk(28.5%, 38.6%, 0%, 2.4%)
CIE-LABlab(68.81, 29.38, -44.67)
CIE-LCHlch(68.81, 53.46, 303.33°)
OKLaboklab(74.28% 0.0577 -0.1247)
OKLCHoklch(74.28% 0.137 294.8)
XYZxyz(46.8460, 39.0864, 94.6805)
Luminance0.3909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B299F9 #E0F999
analogous
#99B0F9 #B299F9 #E299F9
triadic
#B299F9 #F9B299 #99F9B2
tetradic
#B299F9 #F999B0 #E0F999 #99F9E2
square
#B299F9 #F999B0 #E0F999 #99F9E2
split-complementary
#B299F9 #F9E299 #B0F999
monochromatic
#5B25F2 #865FF6 #B299F9 #DED3FC #E9E2FD

Accessibility & contrast

On white

2.38
#B299F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#B299F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B299F9
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B299F9#FFFFFF#000000##000000
##B299F91.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA9FD
Deuteranopia (green-blind)
#82A6F7
Tritanopia (blue-blind)
#A3AABD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b299f9;
/* rgb */ color: rgb(178, 153, 249);
/* oklch */ color: oklch(74.3% 0.137 294.8);
Tailwind
colors: {
  custom: {
    50: '#cbb7fb',
    500: '#b299f9',
    950: '#000000',
  },
}
SCSS
$custom: #b299f9;
$custom-light: #cbb7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#b299f9",
  "rgb": {
    "r": 178,
    "g": 153,
    "b": 249
  },
  "hsl": {
    "h": 255.625,
    "s": 88.889,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74277,
    "c": 0.13741,
    "h": 294.8
  },
  "luminance": 0.39087
}

Semantic roles & 50–950 ramp

primary
#B299F9
secondary
#EDF5D6
accent
#E600AA
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #B299F9

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

Preview Lab → · Contrast checker → · Palette generator →

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