Skip to content

#892dfb

a balanced, electric violet · cool · closest name: Blue Violet

RGB
137, 45, 251
HSL
267°, 96%, 58%
CMYK
45, 82, 0, 2
Luminance
0.1416

At a glance

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

Hex
#892dfb
Hue
267°
violet
Saturation
96%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1416
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.48:1
Closest name
Blue Violet
ΔE2000 3.3
Where it sits
Hue267° of 360°
Saturation96%
Lightness58%
Temperature
Warm ← → Cool68% 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#892dfb
RGBrgb(137, 45, 251)
HSLhsl(267, 96%, 58%)
CMYKcmyk(45%, 82%, 0%, 2%)
LABlab(44.5 74.7 -85.2)
LCHlch(44.5 113.3 311.3)
OKLCHoklch(0.556 0.272 296.1)
Decimal8990203
Display P3color(display-p3 0.537 0.176 0.984)

Copy-ready code

/* CSS */
color: #892dfb;
background-color: #892dfb;
/* Tailwind (arbitrary) */
class="text-[#892dfb] bg-[#892dfb]"
/* SCSS */
$brand: #892dfb;
/* SwiftUI */
Color(red: 0.537, green: 0.176, blue: 0.984)
/* Android */
Color.parseColor("#892dfb")
/* Flutter */
Color(0xFF892DFB)
/* Python / OpenCV (BGR) */
(251, 45, 137)

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

Accessibility — WCAG contrast

Aa
#892dfb on white: 5.48:1
AA ✓ pass · AA-large · AAA
Aa
#892dfb on black: 3.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AFF
deuteranopia · #0066F7
tritanopia · #686B98

Color scale — 50 to 950

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

#F7F1FD
#EEE4FC
#DBC1FA
#C191FD
#A25AFC
#892dfb
#6E05F0
#5C04C8
#4903A0
#370773
#230448
Base = 500Lightest = 50 · #F7F1FDDarkest = 950 · #230448
:root {
  --brand-50: #F7F1FD;
  --brand-100: #EEE4FC;
  --brand-200: #DBC1FA;
  --brand-300: #C191FD;
  --brand-400: #A25AFC;
  --brand-500: #892dfb;
  --brand-600: #6E05F0;
  --brand-700: #5C04C8;
  --brand-800: #4903A0;
  --brand-900: #370773;
  --brand-950: #230448;
  --brand: #892dfb;
  --brand-ink: #ffffff;
}

Colors that work with #892dfb

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#F7F4FA
Tinted page background
Border#D4C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#A4CC00
Second voice, not a rival
Dark variant#39027D
Hover, pressed, headers
Light variant#F1E6FF
Selected rows, tints
Dark surface#1B1424
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 #892dfb

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#9FFB2D
Analogous left#2D38FB
Analogous right#F02DFB
Split-complement 1#FBF02D
Split-complement 2#38FB2D
Triadic 1#FB892D
Triadic 2#2DFB89
Tetradic#FB2D38

RGB percentages

Red53.7%
Green17.6%
Blue98.4%

CMYK percentages

Cyan45.4%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#892dfb text on a black background

contrast 3.83:1

Card sample

#892dfb text on a white background

contrast 5.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(137, 45, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(137, 45, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #892dfb;
background: linear-gradient(135deg, #892dfb, #FB2DE4);

Monochromatic scale

Palettes built from #892dfb

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.

#892dfb 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.

#892dfb, answered

What color is #892dfb?

#892dfb is a balanced electric violet, closest to Blue Violet (ΔE2000 3.3). It sits at 267° on the hue wheel with 96% saturation and 58% lightness, which reads as cool.

What is the RGB value of #892dfb?

rgb(137, 45, 251) — 137 red, 45 green and 251 blue out of 255, or 53.7% / 17.6% / 98.4% by channel.

Is #892dfb a light or a dark color?

It is a dark color. Relative luminance is 0.1416 and perceived brightness is 46%, so white text on it reaches 5.48:1.

Should I use black or white text on #892dfb?

White. It scores 5.48:1 against #892dfb, versus 3.83:1 for black — AA at any size.

What is the complementary color of #892dfb?

#9FFB2D sits directly opposite on the wheel. Softer options are the split-complements #FBF02D and #38FB2D, which give the same contrast with far less vibration.

What colors go well with #892dfb?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6E4B9B for secondary text, #A4CC00 as an accent and #39027D for hover and pressed states. For a palette, the analogous pair #2D38FB and #F02DFB stays calm, while #9FFB2D is the loudest partner.

What is #892dfb in CMYK for printing?

cmyk(45%, 82%, 0%, 2%). 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 #892dfb warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D52DFB; nudged cooler, #3B2BFD.

Work with #892dfb in the Color Lab