#B299EC#B299EC

#B299EC is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.7% C 0.120 H 297.2°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#B299EC
RGBrgb(178, 153, 236)
HSLhsl(258, 69%, 76%)
HSVhsv(258, 35%, 93%)
CMYKcmyk(24.6%, 35.2%, 0%, 7.5%)
CIE-LABlab(68.24, 26.26, -38.45)
CIE-LCHlch(68.24, 46.56, 304.33°)
OKLaboklab(73.66% 0.0549 -0.1068)
OKLCHoklch(73.66% 0.12 297.2)
XYZxyz(44.8882, 38.3032, 84.3690)
Luminance0.3830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B299EC #D3EC99
analogous
#99AAEC #B299EC #DC99EC
triadic
#B299EC #ECB299 #99ECB2
tetradic
#B299EC #EC99AA #D3EC99 #99ECDC
square
#B299EC #EC99AA #D3EC99 #99ECDC
split-complementary
#B299EC #ECDC99 #AAEC99
monochromatic
#6432D9 #8B65E2 #B299EC #D9CDF6 #ECE5FA

Accessibility & contrast

On white

2.42
#B299EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#B299EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B299EC
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B299EC#FFFFFF#000000##000000
##B299EC1.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A7EF
Deuteranopia (green-blind)
#88A5EA
Tritanopia (blue-blind)
#A7A7B8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b299ec;
/* rgb */ color: rgb(178, 153, 236);
/* oklch */ color: oklch(73.7% 0.120 297.2);
Tailwind
colors: {
  custom: {
    50: '#cab7f2',
    500: '#b299ec',
    950: '#000000',
  },
}
SCSS
$custom: #b299ec;
$custom-light: #cab7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b299ec",
  "rgb": {
    "r": 178,
    "g": 153,
    "b": 236
  },
  "hsl": {
    "h": 258.072,
    "s": 68.595,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73656,
    "c": 0.12008,
    "h": 297.2
  },
  "luminance": 0.38304
}

Semantic roles & 50–950 ramp

primary
#B299EC
secondary
#EAF2D9
accent
#D11598
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #B299EC

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

Preview Lab → · Contrast checker → · Palette generator →

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