Skip to content

#cf18ff

a balanced, electric violet · neutral · closest name: Medium Orchid

RGB
207, 24, 255
HSL
288°, 100%, 55%
CMYK
19, 91, 0, 0
Luminance
0.2114

At a glance

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

Hex
#cf18ff
Hue
288°
violet
Saturation
100%
electric
Lightness
55%
balanced
Brightness
100%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2114
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.23:1
Closest name
Medium Orchid
ΔE2000 7.5
Where it sits
Hue288° of 360°
Saturation100%
Lightness55%
Temperature
Warm ← → Cool57% cool

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

Every format

HEX#cf18ff
RGBrgb(207, 24, 255)
HSLhsl(288, 100%, 55%)
CMYKcmyk(19%, 91%, 0%, 0%)
LABlab(53.1 89.2 -72.9)
LCHlch(53.1 115.2 320.8)
OKLCHoklch(0.636 0.301 316.9)
Decimal13572351
Display P3color(display-p3 0.812 0.094 1.000)

Copy-ready code

/* CSS */
color: #cf18ff;
background-color: #cf18ff;
/* Tailwind (arbitrary) */
class="text-[#cf18ff] bg-[#cf18ff]"
/* SCSS */
$brand: #cf18ff;
/* SwiftUI */
Color(red: 0.812, green: 0.094, blue: 1.000)
/* Android */
Color.parseColor("#cf18ff")
/* Flutter */
Color(0xFFCF18FF)
/* Python / OpenCV (BGR) */
(255, 24, 207)

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

Accessibility — WCAG contrast

Aa
#cf18ff on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#cf18ff on black: 5.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0075FF
deuteranopia · #1883FB
tritanopia · #CC5C98

Color scale — 50 to 950

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

#FBF1FE
#F7E3FC
#EFC0FC
#E88FFF
#DC57FF
#cf18ff
#C200F5
#A200CC
#8100A3
#5E0576
#3B0349
Base = 500Lightest = 50 · #FBF1FEDarkest = 950 · #3B0349
:root {
  --brand-50: #FBF1FE;
  --brand-100: #F7E3FC;
  --brand-200: #EFC0FC;
  --brand-300: #E88FFF;
  --brand-400: #DC57FF;
  --brand-500: #cf18ff;
  --brand-600: #C200F5;
  --brand-700: #A200CC;
  --brand-800: #8100A3;
  --brand-900: #5E0576;
  --brand-950: #3B0349;
  --brand: #cf18ff;
  --brand-ink: #000000;
}

Colors that work with #cf18ff

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#F9F4FA
Tinted page background
Border#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#5ECC00
Second voice, not a rival
Dark variant#650080
Hover, pressed, headers
Light variant#FAE5FF
Selected rows, tints
Dark surface#211424
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 #cf18ff

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#48FF18
Analogous left#5B18FF
Analogous right#FF18BC
Split-complement 1#BCFF18
Split-complement 2#18FF5B
Triadic 1#FFCF18
Triadic 2#18FFCF
Tetradic#FF5B18

RGB percentages

Red81.2%
Green9.4%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta90.6%
Yellow0.0%
Key (black)0.0%

Color previews

#cf18ff text on a black background

contrast 5.23:1

Card sample

#cf18ff text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 24, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 24, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cf18ff;
background: linear-gradient(135deg, #cf18ff, #FF1895);

Monochromatic scale

Palettes built from #cf18ff

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.

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

#cf18ff, answered

What color is #cf18ff?

#cf18ff is a balanced electric violet, closest to Medium Orchid (ΔE2000 7.5). It sits at 288° on the hue wheel with 100% saturation and 55% lightness, which reads as neutral.

What is the RGB value of #cf18ff?

rgb(207, 24, 255) — 207 red, 24 green and 255 blue out of 255, or 81.2% / 9.4% / 100% by channel.

Is #cf18ff a light or a dark color?

It is a mid-tone. Relative luminance is 0.2114 and perceived brightness is 56%, so black text on it reaches 5.23:1.

Should I use black or white text on #cf18ff?

Black. It scores 5.23:1 against #cf18ff, versus 4.02:1 for white — AA at any size.

What is the complementary color of #cf18ff?

#48FF18 sits directly opposite on the wheel. Softer options are the split-complements #BCFF18 and #18FF5B, which give the same contrast with far less vibration.

What colors go well with #cf18ff?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #5ECC00 as an accent and #650080 for hover and pressed states. For a palette, the analogous pair #5B18FF and #FF18BC stays calm, while #48FF18 is the loudest partner.

What is #cf18ff in CMYK for printing?

cmyk(19%, 91%, 0%, 0%). 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 #cf18ff warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FF18DA; nudged cooler, #7A18FF.

Work with #cf18ff in the Color Lab