Skip to content

#830cac

a dark, electric violet · cool · closest name: Dark Violet

RGB
131, 12, 172
HSL
285°, 87%, 36%
CMYK
24, 93, 0, 33
Luminance
0.0807

At a glance

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

Hex
#830cac
Hue
285°
violet
Saturation
87%
electric
Lightness
36%
dark
Brightness
67%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0807
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.04:1
Closest name
Dark Violet
ΔE2000 5.9
Where it sits
Hue285° of 360°
Saturation87%
Lightness36%
Temperature
Warm ← → Cool59% 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#830cac
RGBrgb(131, 12, 172)
HSLhsl(285, 87%, 36%)
CMYKcmyk(24%, 93%, 0%, 33%)
LABlab(34.1 65.3 -56.5)
LCHlch(34.1 86.3 319.2)
OKLCHoklch(0.462 0.222 313.9)
Decimal8588460
Display P3color(display-p3 0.514 0.047 0.675)

Copy-ready code

/* CSS */
color: #830cac;
background-color: #830cac;
/* Tailwind (arbitrary) */
class="text-[#830cac] bg-[#830cac]"
/* SCSS */
$brand: #830cac;
/* SwiftUI */
Color(red: 0.514, green: 0.047, blue: 0.675)
/* Android */
Color.parseColor("#830cac")
/* Flutter */
Color(0xFF830CAC)
/* Python / OpenCV (BGR) */
(172, 12, 131)

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

Accessibility — WCAG contrast

Aa
#830cac on white: 8.04:1
AA ✓ pass · AA-large · AAA
Aa
#830cac on black: 2.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BB0
deuteranopia · #0053A9
tritanopia · #7F3D65

Color scale — 50 to 950

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

#FAF2FD
#F5E5FA
#EAC4F7
#DF96F8
#CE62F4
#BE2DF0
#AE10E5
#830cac
#740B99
#550C6E
#350845
Base = 700Lightest = 50 · #FAF2FDDarkest = 950 · #350845
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E5FA;
  --brand-200: #EAC4F7;
  --brand-300: #DF96F8;
  --brand-400: #CE62F4;
  --brand-500: #BE2DF0;
  --brand-600: #AE10E5;
  --brand-700: #830cac;
  --brand-800: #740B99;
  --brand-900: #550C6E;
  --brand-950: #350845;
  --brand: #830cac;
  --brand-ink: #ffffff;
}

Colors that work with #830cac

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#E1C0ED
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#67C309
Second voice, not a rival
Dark variant#5B0877
Hover, pressed, headers
Light variant#F8E7FD
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 #830cac

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#35AC0C
Analogous left#330CAC
Analogous right#AC0C85
Split-complement 1#85AC0C
Split-complement 2#0CAC33
Triadic 1#AC830C
Triadic 2#0CAC83
Tetradic#AC330C

RGB percentages

Red51.4%
Green4.7%
Blue67.5%

CMYK percentages

Cyan23.8%
Magenta93.0%
Yellow0.0%
Key (black)32.5%

Color previews

#830cac text on a black background

contrast 2.61:1

Card sample

#830cac text on a white background

contrast 8.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(131, 12, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(131, 12, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #830cac;
background: linear-gradient(135deg, #830cac, #AC0C6A);

Monochromatic scale

Palettes built from #830cac

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.

#830cac 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.

#830cac, answered

What color is #830cac?

#830cac is a dark electric violet, closest to Dark Violet (ΔE2000 5.9). It sits at 285° on the hue wheel with 87% saturation and 36% lightness, which reads as cool.

What is the RGB value of #830cac?

rgb(131, 12, 172) — 131 red, 12 green and 172 blue out of 255, or 51.4% / 4.7% / 67.5% by channel.

Is #830cac a light or a dark color?

It is a dark color. Relative luminance is 0.0807 and perceived brightness is 36%, so white text on it reaches 8.04:1.

Should I use black or white text on #830cac?

White. It scores 8.04:1 against #830cac, versus 2.61:1 for black — AAA at any size.

What is the complementary color of #830cac?

#35AC0C sits directly opposite on the wheel. Softer options are the split-complements #85AC0C and #0CAC33, which give the same contrast with far less vibration.

What colors go well with #830cac?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #67C309 as an accent and #5B0877 for hover and pressed states. For a palette, the analogous pair #330CAC and #AC0C85 stays calm, while #35AC0C is the loudest partner.

What is #830cac in CMYK for printing?

cmyk(24%, 93%, 0%, 33%). 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 #830cac warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC0C9B; nudged cooler, #480AAE.

Work with #830cac in the Color Lab