Skip to content

#cb8af4

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

RGB
203, 138, 244
HSL
277°, 83%, 75%
CMYK
17, 43, 0, 4
Luminance
0.3741

At a glance

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

Hex
#cb8af4
Hue
277°
violet
Saturation
83%
electric
Lightness
75%
light
Brightness
96%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3741
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.48:1
Closest name
Violet
ΔE2000 7.1
Where it sits
Hue277° of 360°
Saturation83%
Lightness75%
Temperature
Warm ← → Cool63% 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#cb8af4
RGBrgb(203, 138, 244)
HSLhsl(277, 83%, 75%)
CMYKcmyk(17%, 43%, 0%, 4%)
LABlab(67.6 43.5 -43.7)
LCHlch(67.6 61.6 314.9)
OKLCHoklch(0.738 0.161 311.2)
Decimal13339380
Display P3color(display-p3 0.796 0.541 0.957)

Copy-ready code

/* CSS */
color: #cb8af4;
background-color: #cb8af4;
/* Tailwind (arbitrary) */
class="text-[#cb8af4] bg-[#cb8af4]"
/* SCSS */
$brand: #cb8af4;
/* SwiftUI */
Color(red: 0.796, green: 0.541, blue: 0.957)
/* Android */
Color.parseColor("#cb8af4")
/* Flutter */
Color(0xFFCB8AF4)
/* Python / OpenCV (BGR) */
(244, 138, 203)

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

Accessibility — WCAG contrast

Aa
#cb8af4 on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#cb8af4 on black: 8.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #74A1F8
deuteranopia · #84A6F1
tritanopia · #C79AB3

Color scale — 50 to 950

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

#F8F2FC
#F2E6FA
#E3C6F6
#cb8af4
#BB65F1
#A432EC
#9115E0
#7912BA
#610E95
#480F6C
#2D0943
Base = 300Lightest = 50 · #F8F2FCDarkest = 950 · #2D0943
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F2E6FA;
  --brand-200: #E3C6F6;
  --brand-300: #cb8af4;
  --brand-400: #BB65F1;
  --brand-500: #A432EC;
  --brand-600: #9115E0;
  --brand-700: #7912BA;
  --brand-800: #610E95;
  --brand-900: #480F6C;
  --brand-950: #2D0943;
  --brand: #cb8af4;
  --brand-ink: #000000;
}

Colors that work with #cb8af4

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#F8F4FA
Tinted page background
Border#DBC0ED
Hairlines and dividers
Muted text#7C4B9B
Captions on the surface
Accent#7EBF0D
Second voice, not a rival
Dark variant#4C0B75
Hover, pressed, headers
Light variant#F5E8FD
Selected rows, tints
Dark surface#1E1424
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 #cb8af4

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#B3F48A
Analogous left#968AF4
Analogous right#F48AE8
Split-complement 1#E8F48A
Split-complement 2#8AF496
Triadic 1#F4CB8A
Triadic 2#8AF4CB
Tetradic#F4968A

RGB percentages

Red79.6%
Green54.1%
Blue95.7%

CMYK percentages

Cyan16.8%
Magenta43.4%
Yellow0.0%
Key (black)4.3%

Color previews

#cb8af4 text on a black background

contrast 8.48:1

Card sample

#cb8af4 text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb8af4

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.

#cb8af4 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.

#cb8af4, answered

What color is #cb8af4?

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

What is the RGB value of #cb8af4?

rgb(203, 138, 244) — 203 red, 138 green and 244 blue out of 255, or 79.6% / 54.1% / 95.7% by channel.

Is #cb8af4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3741 and perceived brightness is 68%, so black text on it reaches 8.48:1.

Should I use black or white text on #cb8af4?

Black. It scores 8.48:1 against #cb8af4, versus 2.48:1 for white — AAA at any size.

What is the complementary color of #cb8af4?

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

What colors go well with #cb8af4?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7C4B9B for secondary text, #7EBF0D as an accent and #4C0B75 for hover and pressed states. For a palette, the analogous pair #968AF4 and #F48AE8 stays calm, while #B3F48A is the loudest partner.

What is #cb8af4 in CMYK for printing?

cmyk(17%, 43%, 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 #cb8af4 warm or cool?

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

Work with #cb8af4 in the Color Lab