Nearest named color · #AB87F3
#AB87F3
Nearest named color: Dreamy Candy Forest
#AB87F3 (rgb(171 135 243), hsl(260 82% 74%), oklch(0.702 0.157 297.6)) is closest to the named color Dreamy Candy Forest. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#AB87F3
oklch(0.702 0.157 297.6)
Color conversions
- HEX
- #ab87f3
- RGB
- rgb(171 135 243)
- HSL
- hsl(260 82% 74%)
- HWB
- hwb(260 53% 5%)
- OKLCH
- oklch(0.702 0.157 297.6)
- OKLab
- oklab(0.702 0.073 -0.139)
- CIE Lab
- lab(63.23 31.12 -49.91)
- LCH
- lch(63.23 58.82 301.9)
- CMYK
- cmyk(30% 44% 0% 5%)
Tints · Shades · Tones
Tints
- B393F5
- BBA0F7
- C3ACF9
- CBB8FA
- D3C4FC
- DCD0FD
- E5DBFE
- EDE7FE
- F6F3FF
Shades
- 9475D3
- 7E63B4
- 685197
- 54417A
- 40315E
- 2D2144
- 1B132B
- 0B0614
- 010103
Tones
- A687E7
- A287DC
- 9D87D0
- 9986C5
- 9585BA
- 9085AE
- 8C84A3
- 888397
- 84818C
Color harmonies
Complementary +180°
- AB87F3
Dreamy Candy Forest
- 98AB19
≈ Barf Green
Analogous -30° +30°
- AB87F3
Dreamy Candy Forest
- 7599FF
≈ Blue Chaos
- D279D0
≈ Purple Kush
Triadic +120° +240°
- AB87F3
Dreamy Candy Forest
- E58224
≈ Sports Fan
- 00B99E
≈ Aare River
Split-complementary +150° +210°
- AB87F3
Dreamy Candy Forest
- C49800
≈ Rapeseed
- 4FB963
≈ Forest Maid
Tetradic +90° +180° +270°
- AB87F3
Dreamy Candy Forest
- F17367
≈ Mild Heart Attack
- 98AB19
≈ Barf Green
- 00B3C5
≈ Antigua Blue
Contrast & accessibility
Ag
FailOn white
WCAG 2.80:1 · APCA Lc 54
Ag
AAAOn black
WCAG 7.49:1 · APCA Lc 48
Best text color: #000000
WCAG 7.49:1 (AAA) · APCA Lc 48
Contrast pairs
Code snippets
CSS
:root {
--dreamy-candy-forest: #ab87f3;
--dreamy-candy-forest-rgb: 171 135 243;
--dreamy-candy-forest-oklch: oklch(0.702 0.157 297.6);
}
.element {
color: var(--dreamy-candy-forest);
background-color: hsl(260 82% 74%);
border-color: oklch(0.702 0.157 297.6);
}Tailwind CSS v4
@theme {
--color-dreamy-candy-forest: #ab87f3;
--color-dreamy-candy-forest-50: #fbecff;
--color-dreamy-candy-forest-100: #efddff;
--color-dreamy-candy-forest-200: #dec6ff;
--color-dreamy-candy-forest-300: #c3a5fc;
--color-dreamy-candy-forest-400: #aa88ee;
--color-dreamy-candy-forest-500: #946adf;
--color-dreamy-candy-forest-600: #7d5abc;
--color-dreamy-candy-forest-700: #644897;
--color-dreamy-candy-forest-800: #483572;
--color-dreamy-candy-forest-900: #322450;
--color-dreamy-candy-forest-950: #1e1235;
}SCSS
$dreamy-candy-forest: #ab87f3;
$dreamy-candy-forest-rgb: 171, 135, 243;
$dreamy-candy-forest-light: mix(#fff, $dreamy-candy-forest, 20%);
$dreamy-candy-forest-dark: mix(#000, $dreamy-candy-forest, 20%);
.element {
color: $dreamy-candy-forest;
box-shadow: 0 0 0 2px rgba($dreamy-candy-forest, 0.35);
}