Skip to content

#af2be7

a balanced, electric violet · cool · closest name: Dark Orchid

RGB
175, 43, 231
HSL
282°, 80%, 54%
CMYK
24, 81, 0, 9
Luminance
0.1661

At a glance

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

Hex
#af2be7
Hue
282°
violet
Saturation
80%
electric
Lightness
54%
balanced
Brightness
91%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1661
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.86:1
Closest name
Dark Orchid
ΔE2000 5
Where it sits
Hue282° of 360°
Saturation80%
Lightness54%
Temperature
Warm ← → Cool60% 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#af2be7
RGBrgb(175, 43, 231)
HSLhsl(282, 80%, 54%)
CMYKcmyk(24%, 81%, 0%, 9%)
LABlab(47.8 76.4 -68.3)
LCHlch(47.8 102.5 318.2)
OKLCHoklch(0.585 0.263 312.7)
Decimal11480039
Display P3color(display-p3 0.686 0.169 0.906)

Copy-ready code

/* CSS */
color: #af2be7;
background-color: #af2be7;
/* Tailwind (arbitrary) */
class="text-[#af2be7] bg-[#af2be7]"
/* SCSS */
$brand: #af2be7;
/* SwiftUI */
Color(red: 0.686, green: 0.169, blue: 0.906)
/* Android */
Color.parseColor("#af2be7")
/* Flutter */
Color(0xFFAF2BE7)
/* Python / OpenCV (BGR) */
(231, 43, 175)

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#ffffff on #af2be7 · 4.86:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.86:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.32:1
AA fail · AA large pass · AAA fail
Reading the other direction: #af2be7 as text scores 4.86:1 on white and 4.32:1 on black.

Accessibility — WCAG contrast

Aa
#af2be7 on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#af2be7 on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BEC
deuteranopia · #0074E3
tritanopia · #A85C8C

Color scale — 50 to 950

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

#F9F3FC
#F4E6F9
#E7C7F5
#D99AF4
#C668EE
#af2be7
#A219DC
#8715B7
#6C1193
#4F106A
#320A42
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #320A42
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E6F9;
  --brand-200: #E7C7F5;
  --brand-300: #D99AF4;
  --brand-400: #C668EE;
  --brand-500: #af2be7;
  --brand-600: #A219DC;
  --brand-700: #8715B7;
  --brand-800: #6C1193;
  --brand-900: #4F106A;
  --brand-950: #320A42;
  --brand: #af2be7;
  --brand-ink: #ffffff;
}

Colors that work with #af2be7

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

Text on it#ffffff
White wins here
Surface#F9F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6EBC10
Second voice, not a rival
Dark variant#540D73
Hover, pressed, headers
Light variant#F6E8FC
Selected rows, tints
Dark surface#1F1424
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 #af2be7

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#63E72B
Analogous left#512BE7
Analogous right#E72BC1
Split-complement 1#C1E72B
Split-complement 2#2BE751
Triadic 1#E7AF2B
Triadic 2#2BE7AF
Tetradic#E7512B

RGB percentages

Red68.6%
Green16.9%
Blue90.6%

CMYK percentages

Cyan24.2%
Magenta81.4%
Yellow0.0%
Key (black)9.4%

Color previews

#af2be7 text on a black background

contrast 4.32:1

Card sample

#af2be7 text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 43, 231, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 43, 231, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af2be7;
background: linear-gradient(135deg, #af2be7, #E72BA2);

Monochromatic scale

Palettes built from #af2be7

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.

#af2be7 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
ButtonsLinksFocus statesCharts
Print note

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

#af2be7, answered

What color is #af2be7?

#af2be7 is a balanced electric violet, closest to Dark Orchid (ΔE2000 5). It sits at 282° on the hue wheel with 80% saturation and 54% lightness, which reads as cool.

What is the RGB value of #af2be7?

rgb(175, 43, 231) — 175 red, 43 green and 231 blue out of 255, or 68.6% / 16.9% / 90.6% by channel.

Is #af2be7 a light or a dark color?

It is a dark color. Relative luminance is 0.1661 and perceived brightness is 50%, so white text on it reaches 4.86:1.

Should I use black or white text on #af2be7?

White. It scores 4.86:1 against #af2be7, versus 4.32:1 for black — AA at any size.

What is the complementary color of #af2be7?

#63E72B sits directly opposite on the wheel. Softer options are the split-complements #C1E72B and #2BE751, which give the same contrast with far less vibration.

What colors go well with #af2be7?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #834B9B for secondary text, #6EBC10 as an accent and #540D73 for hover and pressed states. For a palette, the analogous pair #512BE7 and #E72BC1 stays calm, while #63E72B is the loudest partner.

What is #af2be7 in CMYK for printing?

cmyk(24%, 81%, 0%, 9%). 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 #af2be7 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E72BDA; nudged cooler, #6928E9.

Work with #af2be7 in the Color Lab