Skip to content

#c51dfd

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

RGB
197, 29, 253
HSL
285°, 98%, 55%
CMYK
22, 89, 0, 1
Luminance
0.1984

At a glance

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

Hex
#c51dfd
Hue
285°
violet
Saturation
98%
electric
Lightness
55%
balanced
Brightness
99%
HSV value
Perceived
55%
weighted brightness
Luminance
0.1984
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.97:1
Closest name
Medium Orchid
ΔE2000 7.7
Where it sits
Hue285° of 360°
Saturation98%
Lightness55%
Temperature
Warm ← → Cool58% 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#c51dfd
RGBrgb(197, 29, 253)
HSLhsl(285, 98%, 55%)
CMYKcmyk(22%, 89%, 0%, 1%)
LABlab(51.7 86.8 -74.2)
LCHlch(51.7 114.1 319.5)
OKLCHoklch(0.623 0.295 314.6)
Decimal12918269
Display P3color(display-p3 0.773 0.114 0.992)

Copy-ready code

/* CSS */
color: #c51dfd;
background-color: #c51dfd;
/* Tailwind (arbitrary) */
class="text-[#c51dfd] bg-[#c51dfd]"
/* SCSS */
$brand: #c51dfd;
/* SwiftUI */
Color(red: 0.773, green: 0.114, blue: 0.992)
/* Android */
Color.parseColor("#c51dfd")
/* Flutter */
Color(0xFFC51DFD)
/* Python / OpenCV (BGR) */
(253, 29, 197)

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

Accessibility — WCAG contrast

Aa
#c51dfd on white: 4.23:1
AA ✗ fail · AA-large · AAA
Aa
#c51dfd on black: 4.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0073FF
deuteranopia · #007FF9
tritanopia · #C05E97

Color scale — 50 to 950

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

#FAF1FD
#F6E3FC
#ECC1FB
#E290FE
#D458FD
#c51dfd
#B602F3
#9802CA
#7A01A2
#590674
#380449
Base = 500Lightest = 50 · #FAF1FDDarkest = 950 · #380449
:root {
  --brand-50: #FAF1FD;
  --brand-100: #F6E3FC;
  --brand-200: #ECC1FB;
  --brand-300: #E290FE;
  --brand-400: #D458FD;
  --brand-500: #c51dfd;
  --brand-600: #B602F3;
  --brand-700: #9802CA;
  --brand-800: #7A01A2;
  --brand-900: #590674;
  --brand-950: #380449;
  --brand: #c51dfd;
  --brand-ink: #000000;
}

Colors that work with #c51dfd

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#E1C0ED
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#66CC00
Second voice, not a rival
Dark variant#5F017E
Hover, pressed, headers
Light variant#F9E6FF
Selected rows, tints
Dark surface#201424
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 #c51dfd

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#55FD1D
Analogous left#551DFD
Analogous right#FD1DC5
Split-complement 1#C5FD1D
Split-complement 2#1DFD55
Triadic 1#FDC51D
Triadic 2#1DFDC5
Tetradic#FD551D

RGB percentages

Red77.3%
Green11.4%
Blue99.2%

CMYK percentages

Cyan22.1%
Magenta88.5%
Yellow0.0%
Key (black)0.8%

Color previews

#c51dfd text on a black background

contrast 4.97:1

Card sample

#c51dfd text on a white background

contrast 4.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(197, 29, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 29, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c51dfd;
background: linear-gradient(135deg, #c51dfd, #FD1DA0);

Monochromatic scale

Palettes built from #c51dfd

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.

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

#c51dfd, answered

What color is #c51dfd?

#c51dfd is a balanced electric violet, closest to Medium Orchid (ΔE2000 7.7). It sits at 285° on the hue wheel with 98% saturation and 55% lightness, which reads as cool.

What is the RGB value of #c51dfd?

rgb(197, 29, 253) — 197 red, 29 green and 253 blue out of 255, or 77.3% / 11.4% / 99.2% by channel.

Is #c51dfd a light or a dark color?

It is a mid-tone. Relative luminance is 0.1984 and perceived brightness is 55%, so black text on it reaches 4.97:1.

Should I use black or white text on #c51dfd?

Black. It scores 4.97:1 against #c51dfd, versus 4.23:1 for white — AA at any size.

What is the complementary color of #c51dfd?

#55FD1D sits directly opposite on the wheel. Softer options are the split-complements #C5FD1D and #1DFD55, which give the same contrast with far less vibration.

What colors go well with #c51dfd?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #874B9B for secondary text, #66CC00 as an accent and #5F017E for hover and pressed states. For a palette, the analogous pair #551DFD and #FD1DC5 stays calm, while #55FD1D is the loudest partner.

What is #c51dfd in CMYK for printing?

cmyk(22%, 89%, 0%, 1%). 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 #c51dfd warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FD1DE3; nudged cooler, #721BFF.

Work with #c51dfd in the Color Lab