#B299EF#B299EF

#B299EF is a light, vivid violet. Relative luminance 0.385; OKLCH L 73.8% C 0.124 H 296.6°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#B299EF
RGBrgb(178, 153, 239)
HSLhsl(257, 73%, 77%)
HSVhsv(257, 36%, 94%)
CMYKcmyk(25.5%, 36%, 0%, 6.3%)
CIE-LABlab(68.37, 26.97, -39.89)
CIE-LCHlch(68.37, 48.15, 304.06°)
OKLaboklab(73.8% 0.0556 -0.1109)
OKLCHoklch(73.8% 0.124 296.6)
XYZxyz(45.3277, 38.4790, 86.6838)
Luminance0.3848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B299EF #D6EF99
analogous
#99ABEF #B299EF #DD99EF
triadic
#B299EF #EFB299 #99EFB2
tetradic
#B299EF #EF99AB #D6EF99 #99EFDD
square
#B299EF #EF99AB #D6EF99 #99EFDD
split-complementary
#B299EF #EFDD99 #ABEF99
monochromatic
#622FDE #8A64E7 #B299EF #DACEF7 #EBE5FB

Accessibility & contrast

On white

2.41
#B299EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#B299EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B299EF
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B299EF#FFFFFF#000000##000000
##B299EF1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A7F2
Deuteranopia (green-blind)
#87A6ED
Tritanopia (blue-blind)
#A6A8B9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b299ef;
/* rgb */ color: rgb(178, 153, 239);
/* oklch */ color: oklch(73.8% 0.124 296.6);
Tailwind
colors: {
  custom: {
    50: '#cab7f4',
    500: '#b299ef',
    950: '#000000',
  },
}
SCSS
$custom: #b299ef;
$custom-light: #cab7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b299ef",
  "rgb": {
    "r": 178,
    "g": 153,
    "b": 239
  },
  "hsl": {
    "h": 257.442,
    "s": 72.881,
    "l": 76.863
  },
  "oklch": {
    "l": 0.73796,
    "c": 0.12409,
    "h": 296.6
  },
  "luminance": 0.38479
}

Semantic roles & 50–950 ramp

primary
#B299EF
secondary
#EBF3D8
accent
#D5119C
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B299EF

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

Preview Lab → · Contrast checker → · Palette generator →

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