Nearest named color · #474747
#474747
Nearest named color: Onyx
#474747 (rgb(71 71 71), hsl(0 0% 28%), oklch(0.398 0 0)) is closest to the named color Onyx. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#474747
oklch(0.398 0 0)
Color conversions
- HEX
- #474747
- RGB
- rgb(71 71 71)
- HSL
- hsl(0 0% 28%)
- HWB
- hwb(0 28% 72%)
- OKLCH
- oklch(0.398 0 0)
- OKLab
- oklab(0.398 0 0)
- CIE Lab
- lab(30.16 0 0)
- LCH
- lch(30.16 0 0)
- CMYK
- cmyk(0% 0% 0% 72%)
Tints · Shades · Tones
Tints
- 575757
- 686868
- 7A7A7A
- 8C8C8C
- 9E9E9E
- B1B1B1
- C4C4C4
- D7D7D7
- EBEBEB
Shades
- 3D3D3D
- 323232
- 282828
- 1F1F1F
- 161616
- 0D0D0D
- 060606
- 020202
- 000000
Tones
- 4C4C4C
- 525252
- 575757
- 5D5D5D
- 636363
- 696969
- 6E6E6E
- 747474
- 7A7A7A
Color harmonies
Complementary +180°
- 474747
Onyx
- 474747
≈ Wrought Iron
Analogous -30° +30°
- 474747
Onyx
- 474747
≈ Wrought Iron
- 474747
≈ Wrought Iron
Triadic +120° +240°
- 474747
Onyx
- 474747
≈ Wrought Iron
- 474747
≈ Wrought Iron
Split-complementary +150° +210°
- 474747
Onyx
- 474747
≈ Wrought Iron
- 474747
≈ Wrought Iron
Tetradic +90° +180° +270°
Contrast & accessibility
Ag
AAAOn white
WCAG 9.29:1 · APCA Lc 91
Ag
FailOn black
WCAG 2.26:1 · APCA Lc 11
Best text color: #FFFFFF
WCAG 9.29:1 (AAA) · APCA Lc 91
Contrast pairs
Code snippets
CSS
:root {
--onyx: #474747;
--onyx-rgb: 71 71 71;
--onyx-oklch: oklch(0.398 0 0);
}
.element {
color: var(--onyx);
background-color: hsl(0 0% 28%);
border-color: oklch(0.398 0 0);
}Tailwind CSS v4
@theme {
--color-onyx: #474747;
--color-onyx-50: #f5f5f5;
--color-onyx-100: #e8e8e8;
--color-onyx-200: #d4d4d4;
--color-onyx-300: #b7b7b7;
--color-onyx-400: #9e9e9e;
--color-onyx-500: #868686;
--color-onyx-600: #717171;
--color-onyx-700: #5b5b5b;
--color-onyx-800: #424242;
--color-onyx-900: #2e2e2e;
--color-onyx-950: #1b1b1b;
}SCSS
$onyx: #474747;
$onyx-rgb: 71, 71, 71;
$onyx-light: mix(#fff, $onyx, 20%);
$onyx-dark: mix(#000, $onyx, 20%);
.element {
color: $onyx;
box-shadow: 0 0 0 2px rgba($onyx, 0.35);
}