Skip to content

#c18af5

a light, electric violet · cool · closest name: Violet

RGB
193, 138, 245
HSL
271°, 84%, 75%
CMYK
21, 44, 0, 4
Luminance
0.3611

At a glance

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

Hex
#c18af5
Hue
271°
violet
Saturation
84%
electric
Lightness
75%
light
Brightness
96%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3611
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.22:1
Closest name
Violet
ΔE2000 9.1
Where it sits
Hue271° of 360°
Saturation84%
Lightness75%
Temperature
Warm ← → Cool66% 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#c18af5
RGBrgb(193, 138, 245)
HSLhsl(271, 84%, 75%)
CMYKcmyk(21%, 44%, 0%, 4%)
LABlab(66.6 40.9 -45.9)
LCHlch(66.6 61.5 311.7)
OKLCHoklch(0.729 0.159 306.6)
Decimal12684021
Display P3color(display-p3 0.757 0.541 0.961)

Copy-ready code

/* CSS */
color: #c18af5;
background-color: #c18af5;
/* Tailwind (arbitrary) */
class="text-[#c18af5] bg-[#c18af5]"
/* SCSS */
$brand: #c18af5;
/* SwiftUI */
Color(red: 0.757, green: 0.541, blue: 0.961)
/* Android */
Color.parseColor("#c18af5")
/* Flutter */
Color(0xFFC18AF5)
/* Python / OpenCV (BGR) */
(245, 138, 193)

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 #c18af5 · 8.22:1
Use #000000AAA at every size.
Aa
White text · 2.55:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.22:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c18af5 as text scores 2.55:1 on white and 8.22:1 on black.

Accessibility — WCAG contrast

Aa
#c18af5 on white: 2.55:1
AA ✗ fail · AA-large · AAA
Aa
#c18af5 on black: 8.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #70A0F9
deuteranopia · #7DA2F2
tritanopia · #B99BB4

Color scale — 50 to 950

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

#F7F2FC
#F0E6FA
#DFC5F6
#c18af5
#AD64F2
#9130ED
#7D13E2
#6810BC
#530D96
#3E0E6D
#270944
Base = 300Lightest = 50 · #F7F2FCDarkest = 950 · #270944
:root {
  --brand-50: #F7F2FC;
  --brand-100: #F0E6FA;
  --brand-200: #DFC5F6;
  --brand-300: #c18af5;
  --brand-400: #AD64F2;
  --brand-500: #9130ED;
  --brand-600: #7D13E2;
  --brand-700: #6810BC;
  --brand-800: #530D96;
  --brand-900: #3E0E6D;
  --brand-950: #270944;
  --brand: #c18af5;
  --brand-ink: #000000;
}

Colors that work with #c18af5

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#F7F4FA
Tinted page background
Border#D7C0ED
Hairlines and dividers
Muted text#744B9B
Captions on the surface
Accent#91C10B
Second voice, not a rival
Dark variant#410A75
Hover, pressed, headers
Light variant#F3E8FD
Selected rows, tints
Dark surface#1C1424
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 #c18af5

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#BEF58A
Analogous left#8B8AF5
Analogous right#F58AF4
Split-complement 1#F4F58A
Split-complement 2#8AF58B
Triadic 1#F5C18A
Triadic 2#8AF5C1
Tetradic#F58B8A

RGB percentages

Red75.7%
Green54.1%
Blue96.1%

CMYK percentages

Cyan21.2%
Magenta43.7%
Yellow0.0%
Key (black)3.9%

Color previews

#c18af5 text on a black background

contrast 8.22:1

Card sample

#c18af5 text on a white background

contrast 2.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(193, 138, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(193, 138, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c18af5;
background: linear-gradient(135deg, #c18af5, #F58AE2);

Monochromatic scale

Palettes built from #c18af5

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.

#c18af5 in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#c18af5, answered

What color is #c18af5?

#c18af5 is a light electric violet, closest to Violet (ΔE2000 9.1). It sits at 271° on the hue wheel with 84% saturation and 75% lightness, which reads as cool.

What is the RGB value of #c18af5?

rgb(193, 138, 245) — 193 red, 138 green and 245 blue out of 255, or 75.7% / 54.1% / 96.1% by channel.

Is #c18af5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3611 and perceived brightness is 67%, so black text on it reaches 8.22:1.

Should I use black or white text on #c18af5?

Black. It scores 8.22:1 against #c18af5, versus 2.55:1 for white — AAA at any size.

What is the complementary color of #c18af5?

#BEF58A sits directly opposite on the wheel. Softer options are the split-complements #F4F58A and #8AF58B, which give the same contrast with far less vibration.

What colors go well with #c18af5?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #91C10B as an accent and #410A75 for hover and pressed states. For a palette, the analogous pair #8B8AF5 and #F58AF4 stays calm, while #BEF58A is the loudest partner.

What is #c18af5 in CMYK for printing?

cmyk(21%, 44%, 0%, 4%). 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 #c18af5 warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E88AF5; nudged cooler, #9989F6.

Work with #c18af5 in the Color Lab