#B297EA#B297EA

#B297EA is a light, vivid violet. Relative luminance 0.375; OKLCH L 73.2% C 0.121 H 298.3°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#B297EA
RGBrgb(178, 151, 234)
HSLhsl(260, 66%, 75%)
HSVhsv(260, 35%, 92%)
CMYKcmyk(23.9%, 35.5%, 0%, 8.2%)
CIE-LABlab(67.68, 26.91, -38.23)
CIE-LCHlch(67.68, 46.75, 305.14°)
OKLaboklab(73.2% 0.0573 -0.1061)
OKLCHoklch(73.2% 0.121 298.3)
XYZxyz(44.2746, 37.5384, 82.7390)
Luminance0.3754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B297EA #CFEA97
analogous
#97A5EA #B297EA #DB97EA
triadic
#B297EA #EAB297 #97EAB2
tetradic
#B297EA #EA97A5 #CFEA97 #97EADB
square
#B297EA #EA97A5 #CFEA97 #97EADB
split-complementary
#B297EA #EADB97 #A5EA97
monochromatic
#6731D5 #8C64E0 #B297EA #D8CAF4 #ECE6FA

Accessibility & contrast

On white

2.47
#B297EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#B297EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B297EA
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B297EA#FFFFFF#000000##000000
##B297EA1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A5ED
Deuteranopia (green-blind)
#87A4E8
Tritanopia (blue-blind)
#A7A5B6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b297ea;
/* rgb */ color: rgb(178, 151, 234);
/* oklch */ color: oklch(73.2% 0.121 298.3);
Tailwind
colors: {
  custom: {
    50: '#cab5f1',
    500: '#b297ea',
    950: '#000000',
  },
}
SCSS
$custom: #b297ea;
$custom-light: #cab5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#b297ea",
  "rgb": {
    "r": 178,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 259.518,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73197,
    "c": 0.1206,
    "h": 298.3
  },
  "luminance": 0.37539
}

Semantic roles & 50–950 ramp

primary
#B297EA
secondary
#EAF1DA
accent
#CE1793
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B297EA

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

Preview Lab → · Contrast checker → · Palette generator →

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