Skip to content

#c7baf0

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

RGB
199, 186, 240
HSL
254°, 64%, 84%
CMYK
17, 23, 0, 6
Luminance
0.5355

At a glance

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

Hex
#c7baf0
Hue
254°
blue
Saturation
64%
vivid
Lightness
84%
light
Brightness
94%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5355
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
11.71:1
Closest name
Thistle
ΔE2000 9.7
Where it sits
Hue254° of 360°
Saturation64%
Lightness84%
Temperature
Warm ← → Cool75% 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#c7baf0
RGBrgb(199, 186, 240)
HSLhsl(254, 64%, 84%)
CMYKcmyk(17%, 23%, 0%, 6%)
LABlab(78.2 15.2 -25.1)
LCHlch(78.2 29.4 301.2)
OKLCHoklch(0.818 0.076 295.7)
Decimal13089520
Display P3color(display-p3 0.780 0.729 0.941)

Copy-ready code

/* CSS */
color: #c7baf0;
background-color: #c7baf0;
/* Tailwind (arbitrary) */
class="text-[#c7baf0] bg-[#c7baf0]"
/* SCSS */
$brand: #c7baf0;
/* SwiftUI */
Color(red: 0.780, green: 0.729, blue: 0.941)
/* Android */
Color.parseColor("#c7baf0")
/* Flutter */
Color(0xFFC7BAF0)
/* Python / OpenCV (BGR) */
(240, 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 #c7baf0 · 11.71:1
Use #000000AAA at every size.
Aa
White text · 1.79:1
AA fail · AA large fail · AAA fail
Aa
Black text · 11.71:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c7baf0 as text scores 1.79:1 on white and 11.71:1 on black.

Accessibility — WCAG contrast

Aa
#c7baf0 on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#c7baf0 on black: 11.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AEC2F2
deuteranopia · #B0C1EE
tritanopia · #BFC2CC

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c7baf0 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.

#F5F4FB
#ECE8F7
#c7baf0
#B4A3EB
#8F75E1
#6947D7
#512CC9
#4424A8
#361D86
#2A1961
#1A103D
Base = 200Lightest = 50 · #F5F4FBDarkest = 950 · #1A103D
:root {
  --brand-50: #F5F4FB;
  --brand-100: #ECE8F7;
  --brand-200: #c7baf0;
  --brand-300: #B4A3EB;
  --brand-400: #8F75E1;
  --brand-500: #6947D7;
  --brand-600: #512CC9;
  --brand-700: #4424A8;
  --brand-800: #361D86;
  --brand-900: #2A1961;
  --brand-950: #1A103D;
  --brand: #c7baf0;
  --brand-ink: #000000;
}

Colors that work with #c7baf0

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#CBC0ED
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#ACAA20
Second voice, not a rival
Dark variant#2A1769
Hover, pressed, headers
Light variant#EEEAFA
Selected rows, tints
Dark surface#181424
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 #c7baf0

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#E3F0BA
Analogous left#BAC8F0
Analogous right#E2BAF0
Split-complement 1#F0E2BA
Split-complement 2#C8F0BA
Triadic 1#F0C7BA
Triadic 2#BAF0C7
Tetradic#F0BAC8

RGB percentages

Red78.0%
Green72.9%
Blue94.1%

CMYK percentages

Cyan17.1%
Magenta22.5%
Yellow0.0%
Key (black)5.9%

Color previews

#c7baf0 text on a black background

contrast 11.71:1

Card sample

#c7baf0 text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7baf0

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.

#c7baf0 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

Converts to four-color process without much drama. Proof it anyway.

#c7baf0, answered

What color is #c7baf0?

#c7baf0 is a light vivid blue, closest to Thistle (ΔE2000 9.7). It sits at 254° on the hue wheel with 64% saturation and 84% lightness, which reads as cool.

What is the RGB value of #c7baf0?

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

Is #c7baf0 a light or a dark color?

It is a light color. Relative luminance is 0.5355 and perceived brightness is 77%, so black text on it reaches 11.71:1.

Should I use black or white text on #c7baf0?

Black. It scores 11.71:1 against #c7baf0, versus 1.79:1 for white — AAA at any size.

What is the complementary color of #c7baf0?

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

What colors go well with #c7baf0?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5E4B9B for secondary text, #ACAA20 as an accent and #2A1769 for hover and pressed states. For a palette, the analogous pair #BAC8F0 and #E2BAF0 stays calm, while #E3F0BA is the loudest partner.

What is #c7baf0 in CMYK for printing?

cmyk(17%, 23%, 0%, 6%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #c7baf0 warm or cool?

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

Work with #c7baf0 in the Color Lab