Skip to content

#c7baf7

a light, electric blue · cool · closest name: Thistle

RGB
199, 186, 247
HSL
253°, 79%, 85%
CMYK
19, 25, 0, 3
Luminance
0.5398

At a glance

Every number on this page in one read: what #c7baf7 is made of, how bright it looks, and which way it leans.

Hex
#c7baf7
Hue
253°
blue
Saturation
79%
electric
Lightness
85%
light
Brightness
97%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5398
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
11.80:1
Closest name
Thistle
ΔE2000 11.3
Where it sits
Hue253° of 360°
Saturation79%
Lightness85%
Temperature
Warm ← → Cool76% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#c7baf7
RGBrgb(199, 186, 247)
HSLhsl(253, 79%, 85%)
CMYKcmyk(19%, 25%, 0%, 3%)
LABlab(78.5 16.8 -28.5)
LCHlch(78.5 33.1 300.4)
OKLCHoklch(0.821 0.086 294.2)
Decimal13089527
Display P3color(display-p3 0.780 0.729 0.969)

Copy-ready code

/* CSS */
color: #c7baf7;
background-color: #c7baf7;
/* Tailwind (arbitrary) */
class="text-[#c7baf7] bg-[#c7baf7]"
/* SCSS */
$brand: #c7baf7;
/* SwiftUI */
Color(red: 0.780, green: 0.729, blue: 0.969)
/* Android */
Color.parseColor("#c7baf7")
/* Flutter */
Color(0xFFC7BAF7)
/* Python / OpenCV (BGR) */
(247, 186, 199)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #c7baf7 · 11.80:1
Use #000000AAA at every size.
Aa
White text · 1.78:1
AA fail · AA large fail · AAA fail
Aa
Black text · 11.80:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c7baf7 as text scores 1.78:1 on white and 11.80:1 on black.

Accessibility — WCAG contrast

Aa
#c7baf7 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#c7baf7 on black: 11.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ACC3FA
deuteranopia · #ADC1F5
tritanopia · #BEC4CF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c7baf7 is pinned to step 200; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F3FC
#EAE6F9
#c7baf7
#AD9AF3
#8568ED
#5C36E8
#4319DB
#3815B7
#2D1192
#24116A
#160A42
Base = 200Lightest = 50 · #F5F3FCDarkest = 950 · #160A42
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EAE6F9;
  --brand-200: #c7baf7;
  --brand-300: #AD9AF3;
  --brand-400: #8568ED;
  --brand-500: #5C36E8;
  --brand-600: #4319DB;
  --brand-700: #3815B7;
  --brand-800: #2D1192;
  --brand-900: #24116A;
  --brand-950: #160A42;
  --brand: #c7baf7;
  --brand-ink: #000000;
}

Colors that work with #c7baf7

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5C4B9B
Captions on the surface
Accent#BCB410
Second voice, not a rival
Dark variant#230D72
Hover, pressed, headers
Light variant#ECE8FC
Selected rows, tints
Dark surface#171424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #c7baf7

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#EAF7BA
Analogous left#BACBF7
Analogous right#E6BAF7
Split-complement 1#F7E6BA
Split-complement 2#CBF7BA
Triadic 1#F7C7BA
Triadic 2#BAF7C7
Tetradic#F7BACB

RGB percentages

Red78.0%
Green72.9%
Blue96.9%

CMYK percentages

Cyan19.4%
Magenta24.7%
Yellow0.0%
Key (black)3.1%

Color previews

#c7baf7 text on a black background

contrast 11.80:1

Card sample

#c7baf7 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #c7baf7;
Background color
Panel with #c7baf7 background
background-color: #c7baf7;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #c7baf7;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(199, 186, 247, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 186, 247, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7baf7;
background: linear-gradient(135deg, #c7baf7, #F0BAF7);

Monochromatic scale

Palettes built from #c7baf7

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#c7baf7 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#c7baf7, answered

What color is #c7baf7?

#c7baf7 is a light electric blue, closest to Thistle (ΔE2000 11.3). It sits at 253° on the hue wheel with 79% saturation and 85% lightness, which reads as cool.

What is the RGB value of #c7baf7?

rgb(199, 186, 247) — 199 red, 186 green and 247 blue out of 255, or 78% / 72.9% / 96.9% by channel.

Is #c7baf7 a light or a dark color?

It is a light color. Relative luminance is 0.5398 and perceived brightness is 78%, so black text on it reaches 11.80:1.

Should I use black or white text on #c7baf7?

Black. It scores 11.80:1 against #c7baf7, versus 1.78:1 for white — AAA at any size.

What is the complementary color of #c7baf7?

#EAF7BA sits directly opposite on the wheel. Softer options are the split-complements #F7E6BA and #CBF7BA, which give the same contrast with far less vibration.

What colors go well with #c7baf7?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #BCB410 as an accent and #230D72 for hover and pressed states. For a palette, the analogous pair #BACBF7 and #E6BAF7 stays calm, while #EAF7BA is the loudest partner.

What is #c7baf7 in CMYK for printing?

cmyk(19%, 25%, 0%, 3%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #c7baf7 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DDBAF7; nudged cooler, #B9C3F8.

Work with #c7baf7 in the Color Lab