#7f7dbf
a balanced, soft blue · cool · closest name: Medium Purple
At a glance
Every number on this page in one read: what #7f7dbf is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #7f7dbf |
| RGB | rgb(127, 125, 191) |
| HSL | hsl(242, 34%, 62%) |
| CMYK | cmyk(34%, 35%, 0%, 25%) |
| LAB | lab(55.0 16.4 -34.3) |
| LCH | lch(55.0 38.0 295.5) |
| OKLCH | oklch(0.618 0.099 284.5) |
| Decimal | 8355263 |
| Display P3 | color(display-p3 0.498 0.490 0.749) |
Copy-ready code
/* CSS */
color: #7f7dbf;
background-color: #7f7dbf;
/* Tailwind (arbitrary) */
class="text-[#7f7dbf] bg-[#7f7dbf]"
/* SCSS */
$brand: #7f7dbf;
/* SwiftUI */
Color(red: 0.498, green: 0.490, blue: 0.749)
/* Android */
Color.parseColor("#7f7dbf")
/* Flutter */
Color(0xFF7F7DBF)
/* Python / OpenCV (BGR) */
(191, 125, 127)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #7f7dbf is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F5F5F9;
--brand-100: #ECECF4;
--brand-200: #D5D4E8;
--brand-300: #B5B4DA;
--brand-400: #7f7dbf;
--brand-500: #6B69B5;
--brand-600: #5351A4;
--brand-700: #454389;
--brand-800: #38366D;
--brand-900: #2B2A50;
--brand-950: #1B1A32;
--brand: #7f7dbf;
--brand-ink: #000000;
}Colors that work with #7f7dbf
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #7f7dbf
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠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 | #BDBF7D | Directly opposite — maximum tension | |
| Analogous left | #7D9CBF | Neighbour, quieter | |
| Analogous right | #A07DBF | Neighbour, quieter | |
| Split-complement 1 | #BFA07D | Contrast without the clash | |
| Split-complement 2 | #9CBF7D | Contrast without the clash | |
| Triadic 1 | #BF7F7D | Even thirds — balanced and loud | |
| Triadic 2 | #7DBF7F | Even thirds — balanced and loud | |
| Tetradic | #BF7D9C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#7f7dbf text on a black background
contrast 5.59:1
#7f7dbf text on a white background
contrast 3.76:1
CSS3 live lab
The quick brown fox
color: #7f7dbf;
background-color: #7f7dbf;
Glowing headline
text-shadow: 2px 2px 8px #7f7dbf;
Soft neon halo
text-shadow: 0 0 14px rgba(127, 125, 191, 0.45);
box-shadow: 0 12px 32px -8px rgba(127, 125, 191, 0.45);
border: 3px solid #7f7dbf; background: linear-gradient(135deg, #7f7dbf, #AB7DBF);
Monochromatic scale
Palettes built from #7f7dbf
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.
Closest color with a full write-up: Slate (#708090) — ΔE2000 11.6 away, with its history, psychology and brand usage.
#7f7dbf in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#7f7dbf, answered
What color is #7f7dbf?
#7f7dbf is a balanced soft blue, closest to Medium Purple (ΔE2000 8.1). It sits at 242° on the hue wheel with 34% saturation and 62% lightness, which reads as cool.
What is the RGB value of #7f7dbf?
rgb(127, 125, 191) — 127 red, 125 green and 191 blue out of 255, or 49.8% / 49% / 74.9% by channel.
Is #7f7dbf a light or a dark color?
It is a mid-tone. Relative luminance is 0.2294 and perceived brightness is 53%, so black text on it reaches 5.59:1.
Should I use black or white text on #7f7dbf?
Black. It scores 5.59:1 against #7f7dbf, versus 3.76:1 for white — AA at any size.
What is the complementary color of #7f7dbf?
#BDBF7D sits directly opposite on the wheel. Softer options are the split-complements #BFA07D and #9CBF7D, which give the same contrast with far less vibration.
What colors go well with #7f7dbf?
For interface work: #F5F5FA as the surface, #C9C8E4 for borders, #4E4C9A for secondary text, #8D7C3F as an accent and #2B2A55 for hover and pressed states. For a palette, the analogous pair #7D9CBF and #A07DBF stays calm, while #BDBF7D is the loudest partner.
What is #7f7dbf in CMYK for printing?
cmyk(34%, 35%, 0%, 25%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #7f7dbf warm or cool?
Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #977DBF; nudged cooler, #7B93C1.