Skip to content

#620cf2

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

RGB
98, 12, 242
HSL
262°, 91%, 50%
CMYK
60, 95, 0, 5
Luminance
0.0927

At a glance

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

Hex
#620cf2
Hue
262°
violet
Saturation
91%
electric
Lightness
50%
balanced
Brightness
95%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0927
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.36:1
Closest name
Blue
ΔE2000 5.3
Where it sits
Hue262° of 360°
Saturation91%
Lightness50%
Temperature
Warm ← → Cool71% 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#620cf2
RGBrgb(98, 12, 242)
HSLhsl(262, 91%, 50%)
CMYKcmyk(60%, 95%, 0%, 5%)
LABlab(36.5 76.9 -93.4)
LCHlch(36.5 121.0 309.5)
OKLCHoklch(0.489 0.279 285.7)
Decimal6425842
Display P3color(display-p3 0.384 0.047 0.949)

Copy-ready code

/* CSS */
color: #620cf2;
background-color: #620cf2;
/* Tailwind (arbitrary) */
class="text-[#620cf2] bg-[#620cf2]"
/* SCSS */
$brand: #620cf2;
/* SwiftUI */
Color(red: 0.384, green: 0.047, blue: 0.949)
/* Android */
Color.parseColor("#620cf2")
/* Flutter */
Color(0xFF620CF2)
/* Python / OpenCV (BGR) */
(242, 12, 98)

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

Accessibility — WCAG contrast

Aa
#620cf2 on white: 7.36:1
AA ✓ pass · AA-large · AAA
Aa
#620cf2 on black: 2.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005BF7
deuteranopia · #004FEE
tritanopia · #00638F

Color scale — 50 to 950

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

#F6F2FD
#EDE5FB
#D7C3F9
#BA94FA
#985FF7
#7529F4
#620cf2
#4F0AC2
#3F089C
#300A70
#1E0646
Base = 600Lightest = 50 · #F6F2FDDarkest = 950 · #1E0646
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EDE5FB;
  --brand-200: #D7C3F9;
  --brand-300: #BA94FA;
  --brand-400: #985FF7;
  --brand-500: #7529F4;
  --brand-600: #620cf2;
  --brand-700: #4F0AC2;
  --brand-800: #3F089C;
  --brand-900: #300A70;
  --brand-950: #1E0646;
  --brand: #620cf2;
  --brand-ink: #ffffff;
}

Colors that work with #620cf2

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#D1C0ED
Hairlines and dividers
Muted text#694B9B
Captions on the surface
Accent#AEC606
Second voice, not a rival
Dark variant#31067A
Hover, pressed, headers
Light variant#EFE7FE
Selected rows, tints
Dark surface#1A1424
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 #620cf2

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
  • Text on black or near-black surfaces
  • 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#9CF20C
Analogous left#0C29F2
Analogous right#D50CF2
Split-complement 1#F2D50C
Split-complement 2#29F20C
Triadic 1#F2620C
Triadic 2#0CF262
Tetradic#F20C29

RGB percentages

Red38.4%
Green4.7%
Blue94.9%

CMYK percentages

Cyan59.5%
Magenta95.0%
Yellow0.0%
Key (black)5.1%

Color previews

#620cf2 text on a black background

contrast 2.85:1

Card sample

#620cf2 text on a white background

contrast 7.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(98, 12, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(98, 12, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #620cf2;
background: linear-gradient(135deg, #620cf2, #F20CE9);

Monochromatic scale

Palettes built from #620cf2

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.

#620cf2 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.

#620cf2, answered

What color is #620cf2?

#620cf2 is a balanced electric violet, closest to Blue (ΔE2000 5.3). It sits at 262° on the hue wheel with 91% saturation and 50% lightness, which reads as cool.

What is the RGB value of #620cf2?

rgb(98, 12, 242) — 98 red, 12 green and 242 blue out of 255, or 38.4% / 4.7% / 94.9% by channel.

Is #620cf2 a light or a dark color?

It is a dark color. Relative luminance is 0.0927 and perceived brightness is 38%, so white text on it reaches 7.36:1.

Should I use black or white text on #620cf2?

White. It scores 7.36:1 against #620cf2, versus 2.85:1 for black — AAA at any size.

What is the complementary color of #620cf2?

#9CF20C sits directly opposite on the wheel. Softer options are the split-complements #F2D50C and #29F20C, which give the same contrast with far less vibration.

What colors go well with #620cf2?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #694B9B for secondary text, #AEC606 as an accent and #31067A for hover and pressed states. For a palette, the analogous pair #0C29F2 and #D50CF2 stays calm, while #9CF20C is the loudest partner.

What is #620cf2 in CMYK for printing?

cmyk(60%, 95%, 0%, 5%). 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 #620cf2 warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B60CF2; nudged cooler, #0B09F5.

Work with #620cf2 in the Color Lab