#B297E5#B297E5

#B297E5 is a light, moderate violet. Relative luminance 0.373; OKLCH L 73.0% C 0.114 H 299.5°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#B297E5
RGBrgb(178, 151, 229)
HSLhsl(261, 60%, 75%)
HSVhsv(261, 34%, 90%)
CMYKcmyk(22.3%, 34.1%, 0%, 10.2%)
CIE-LABlab(67.47, 25.74, -35.81)
CIE-LCHlch(67.47, 44.10, 305.71°)
OKLaboklab(72.97% 0.0561 -0.0992)
OKLCHoklch(72.97% 0.114 299.5)
XYZxyz(43.5664, 37.2551, 79.0093)
Luminance0.3725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B297E5 #CAE597
analogous
#97A3E5 #B297E5 #D997E5
triadic
#B297E5 #E5B297 #97E5B2
tetradic
#B297E5 #E597A3 #CAE597 #97E5D9
square
#B297E5 #E597A3 #CAE597 #97E5D9
split-complementary
#B297E5 #E5D997 #A3E597
monochromatic
#6A35CD #8E66D9 #B297E5 #D6C8F1 #EDE7F9

Accessibility & contrast

On white

2.48
#B297E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#B297E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B297E5
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B297E5#FFFFFF#000000##000000
##B297E51.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A4E8
Deuteranopia (green-blind)
#89A4E3
Tritanopia (blue-blind)
#A9A4B4
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b297e5;
/* rgb */ color: rgb(178, 151, 229);
/* oklch */ color: oklch(73.0% 0.114 299.5);
Tailwind
colors: {
  custom: {
    50: '#cab5ed',
    500: '#b297e5',
    950: '#000000',
  },
}
SCSS
$custom: #b297e5;
$custom-light: #cab5ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b297e5",
  "rgb": {
    "r": 178,
    "g": 151,
    "b": 229
  },
  "hsl": {
    "h": 260.769,
    "s": 60,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72967,
    "c": 0.11396,
    "h": 299.5
  },
  "luminance": 0.37255
}

Semantic roles & 50–950 ramp

primary
#B297E5
secondary
#E9F0DB
accent
#C81E8D
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #B297E5

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

Preview Lab → · Contrast checker → · Palette generator →

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